<commit_before><div id="questionList">
<h1><%=@brand.name%> Texts (<%=@texts.total_entries%>)</h1>
<%= render "menu"%>
  <%= form_for @search do |f| %>
  <div id="search">
  Search by Dates Between <%= f.datetime_select :created_at_greater_than, :include_blank => true, :default => 1.months.ago %> and <%= f.datetime_select :created_at_less_than, :include_blank => true, :default => Time.now %>
  <%= f.submit "Submit", :value=>"Search", :class=>"softButton"%>  
      </div>
<table id="tableList" class="tablesorter">
  <thead>
    <th>Brand</th>
    <th>Date</th>
    <th>Text</th>
	  <th>Response</th>
	  <th>Text Type</th>	  
	  <th>Flagged?</th>
    <th>Action</th>	  
  </thead>
  <td></td>
  <td></td>
  <td><%= f.text_field :text_contains,:class=>"search_medium" %></td>
  <td><%= f.text_field :response_contains,:class=>"search_medium" %></td>
  <td><%= f.text_field :text_type_contains,:class=>"search_medium" %></td>  
  <td><%= f.check_box :flag_is_true%></td>
  <td><%= f.submit "Submit", :value=>"Search", :class=>"softButton"%></td>

<% @texts.each do |text| %>
  <tr>
  <td><%=text.text_session.brand.name%></td>
  <td><%=text.created_at.strftime("%Y-%m-%d")%>
  <td><%=text.text%></td>
  <td><%=text.response%></td>  
  <td><%=text.text_type%></td>    
  <td><%=text.flag%></td>
  <td><%=link_to "Show Chatter", text.text_session.chatter%></td>  <commit_msg>Added action and tag search to texts screen fixes #40<commit_after><div id="questionList">
<h1><%=@brand.name%> Texts (<%=@texts.total_entries%>)</h1>
<%= render "menu"%>
  <%= form_for @search do |f| %>
  <div id="search">
  Search by Dates Between <%= f.datetime_select :created_at_greater_than, :include_blank => true, :default => 1.months.ago %> and <%= f.datetime_select :created_at_less_than, :include_blank => true, :default => Time.now %>
  <%= f.submit "Submit", :value=>"Search", :class=>"softButton"%>  
      </div>
<table id="tableList" class="tablesorter">
  <thead>
    <th>Brand</th>
    <th>Date</th>
    <th>Text</th>
    <th>Tag</th>
    <th>action</th>    
	  <th>Response</th>
	  <th>Text Type</th>	  
	  <th>Flagged?</th>
    <th>Action</th>	  
  </thead>
  <td></td>
  <td></td>
  <td><%= f.text_field :text_contains,:class=>"search_medium" %></td>
  <td><%= f.text_field :tag_name_contains,:class=>"search_medium" %></td>  
  <td><%= f.text_field :category_name_contains,:class=>"search_medium" %></td>    
  <td><%= f.text_field :response_contains,:class=>"search_medium" %></td>
  <td><%= f.text_field :text_type_contains,:class=>"search_medium" %></td>  
  <td><%= f.check_box :flag_is_true%></td>
  <td><%= f.submit "Submit", :value=>"Search", :class=>"softButton"%></td>

<% @texts.each do |text| %>
  <tr>
  <td><%=text.text_session.brand.name%></td>
  <td><%=text.created_at.strftime("%Y-%m-%d")%>
  <td><%=text.text%></td>
  <td>
  <% if text.tag_id%>
    <%=text.tag.name%>
  <% end %>
  </td>
  <td>
    <% if text.category_id%>
      <%=text.category.name%>      
    <% end %>
  </td>
  <td><%=text.response%></td>  
  <td><%=text.text_type%></td>    
  <td><%=text.flag%></td>
  <td><%=link_to "Show Chatter", text.text_session.chatter%></td>  
{'fraction_non_alphanumeric': 0.2531685678073511, 'fraction_numerical': 0.0025348542458808617, 'mean_word_length': 4.369047619047619, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 187, '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': '6176073', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1286, 'n_words': 199}