<commit_before><h1>Listings</h1>

<table class="dataTable" style="width: 100%;">
  <thead>
    <tr>
      <th>Title</th>
      <th>Active</th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @listings.each do |listing| %>
      <tr>
        <td><%= listing.title %></td>
        <td sorting_1 class="<%= listing.active ? "postedGreen" : "postedRed" %>" style="text-align: center;"><%= link_to (listing.active ? 'Disable' : 'Enable'), [@customer, listing], :method => :delete, :confirm => "Are you sure you want to #{listing.active ? "stop" : "start"} posting this ad?" %></td>
        <td><%= link_to 'Edit', edit_customer_listing_path(@customer, listing) %></td>
     </tr>
    <% end %>
  </tbody>
</table>

<br />

<div style="text-align: center;">
  <%= link_to 'New Listing', new_customer_listing_path(@customer), :style => "font-size: 40px; text-align: center;" %>
</div>

<script type="text/javascript">
  $(document).ready(function(){
    $(".dataTable").dataTable({
      "bJQueryUI": true,
      "iDisplayLength": 50,
      "aaSorting" : [[1, 'desc']]
    });
  });
</script>
<commit_msg>Added new columns to listings index<commit_after><h1>Listings</h1>

<table class="dataTable" style="width: 100%;">
  <thead>
    <tr>
      <th>Title</th>
      <th>Address</th>
      <th>Price</th>
      <th>Last Updated</th>
      <th>Active</th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @listings.each do |listing| %>
      <tr>
        <td><%= listing.title %></td>
        <td><%= listing.infos[:ad_address] %></td>
        <td><%= listing.infos[:ad_price] %></td>
        <td><%= listing.updated_at %></td>
        <td sorting_1 class="<%= listing.active ? "postedGreen" : "postedRed" %>" style="text-align: center;"><%= link_to (listing.active ? 'Disable' : 'Enable'), [@customer, listing], :method => :delete, :confirm => "Are you sure you want to #{listing.active ? "stop" : "start"} posting this ad?" %></td>
        <td><%= link_to 'Edit', edit_customer_listing_path(@customer, listing) %></td>
     </tr>
    <% end %>
  </tbody>
</table>

<br />

<div style="text-align: center;">
  <%= link_to 'New Listing', new_customer_listing_path(@customer), :style => "font-size: 40px; text-align: center;" %>
</div>

<script type="text/javascript">
  $(document).ready(function(){
    $(".dataTable").dataTable({
      "bJQueryUI": true,
      "iDisplayLength": 50,
      "aaSorting" : [[1, 'desc']]
    });
  });
</script>

{'fraction_non_alphanumeric': 0.22721700040866366, 'fraction_numerical': 0.008990600735594606, 'mean_word_length': 3.325088339222615, 'pattern_counts': {'":': 4, '<': 90, '<?xml version=': 0, '>': 96, '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': '343322', 'n_tokens_mistral': 927, 'n_tokens_neox': 860, 'n_words': 190}