<commit_before><!DOCTYPE html>
<html>
  <head>
    <title>Your Favourite Venues</title>
    <style>
      body {
        font-family:"Gill Sans", "Gill Sans MT", Sans-Serif;
      }
      .container {
        width:400px;
        margin:120px auto 0px auto;
      }
      h1 {
        width:400px;
        margin-bottom:12px;
        text-align:center;
        color:#ff4b33;
        font-size:40px;
        padding-bottom:8px;
        border-bottom:2px solid #ff4b33;
      }
      form {
        display:block;
        width:400px;
      }
      input {
        display:block;
        float:left;
        padding:8px;
        font-size:16px;
      }
      #query {
        width:280px;
        margin-right:12px;
      }
      #submit {
        width:88px;
        border:none;
        background:#ff4b33;
        padding:10px;
      }
      #submit:hover {
        background:#ff7866;
      }
      .clear {
        height:1px;
        width:400px;
        clear:both;
      }
      .result {
        position: relative;
        clear:both;
        width:400px;
        margin-top:12px;
        border-top:2px solid #ff4b33;
        padding-top:12px;
        text-align:center;
      }
      .result a {
        font-size:24px;
        display:block;
        margin-top:8px;
        color:#ff2d11;
        background:#ffd2cc;
        padding:8px;
      }
      .result input {
        position: relative;
        top: -30px;
        float:right;
      }
      </style>
  </head>
  <body>
    <div class="container">
      <h1>Your venues</h1>
      <form method="post">
        <input type="text" value="<%= h(params[:query]) %>" name="query" id="query" />
        <input type="submit" value="search" id="submit" />
      </form>
      <div class="clear"></div>
      <% if @venues %>
        <div class="result">
          <p>Matching Venues</p>
          <table border="2" bordercolor="#FF4B33" style="background-color:#FFFFFF" width="100%" cellpadding="3" cellspacing="3">
          </table>
            <% @venues.each_with_index do |venue, i| %>
              <tr>
                <td><a href=<%= venue[:canonical_url] %> target="_blank"><%= venue[:name]%></a></td>
                <td><input type="checkbox" name="favourite_<%=i%>" value="favourite"<%= checker(venue[:favourite]) %></td>
                <td><%=address(venue[:location])%></td>
              </tr>
              <% end %>
          </div>
      <% end %>
    </div>
  </body>
</html>
<commit_msg>Added venue_id to check box value<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>Your Favourite Venues</title>
    <style>
      body {
        font-family:"Gill Sans", "Gill Sans MT", Sans-Serif;
      }
      .container {
        width:400px;
        margin:120px auto 0px auto;
      }
      h1 {
        width:400px;
        margin-bottom:12px;
        text-align:center;
        color:#ff4b33;
        font-size:40px;
        padding-bottom:8px;
        border-bottom:2px solid #ff4b33;
      }
      form {
        display:block;
        width:400px;
      }
      input {
        display:block;
        float:left;
        padding:8px;
        font-size:16px;
      }
      #query {
        width:280px;
        margin-right:12px;
      }
      #submit {
        width:88px;
        border:none;
        background:#ff4b33;
        padding:10px;
      }
      #submit:hover {
        background:#ff7866;
      }
      .clear {
        height:1px;
        width:400px;
        clear:both;
      }
      .result {
        position: relative;
        clear:both;
        width:400px;
        margin-top:12px;
        border-top:2px solid #ff4b33;
        padding-top:12px;
        text-align:center;
      }
      .result a {
        font-size:24px;
        display:block;
        margin-top:8px;
        color:#ff2d11;
        background:#ffd2cc;
        padding:8px;
      }
      .result p.title {
        border-bottom:2px solid #ff4b33;
        padding-bottom:26px;
      }
      .result p.address {
        margin-top:2px;

      }
      .result input {
        position: relative;
        top: -30px;
        float:right;
      }
      </style>
  </head>
  <body>
    <div class="container">
      <h1>Your venues</h1>
      <form method="post">
        <input type="text" value="<%= h(params[:query]) %>" name="query" id="query" />
        <input type="submit" value="search" id="submit" />
      </form>
      <div class="clear"></div>
      <% if @venues %>
        <div class="result">
          <p class="title">Matching Venues</p>
            <% @venues.each_with_index do |venue, i| %>
              <a href=<%= venue[:canonical_url] %> target="_blank"><%= venue[:name]%></a>
              <input type="checkbox" name="favourite_<%=i%>" value="<%=venue[:venue_id]%>"<%=checker(venue[:favourite])%> >
              <p class="address"><%=address(venue[:location])%></p>
              <p class="address" style="display:none"><%=venue[:venue_id]%></p>
            <% end %>
          </div>
      <% end %>
    </div>
  </body>
</html>

{'fraction_non_alphanumeric': 0.1554671968190855, 'fraction_numerical': 0.03180914512922465, 'mean_word_length': 1.674641148325359, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 94, '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': '3058535', 'n_tokens_mistral': 1798, 'n_tokens_neox': 1658, 'n_words': 285}