<commit_before>
<!-- This should probably go in the site styles... -->
<style type="text/css">
  table.qr {
    border-width: 0;
    border-style: none;
    border-color: #0000ff;
    border-collapse: collapse;
  }

  table.qr td {
    border-width: 0;
    border-style: none;
    border-color: #0000ff;
    border-collapse: collapse;
    padding: 0;
    margin: 0;
    width: 10px;
    height: 10px;
  }

  table.qr td.black { background-color: #000; }
  table.qr td.white { background-color: #fff; }
</style>
 
<% qrc = qrcode(@bike) %>
<table class="qr">
  <% qrc.modules.each_index do |x| -%>
    <tr>
      <% qrc.modules.each_index do |y| -%>
        <% if qrc.dark?(x,y) -%>
          <td class="black"/>
        <% else -%>
          <td class="white"/>
        <% end -%>
      <% end -%>
    </tr>
  <% end -%>
</table><commit_msg>Made the qr page not as shitty... still not great<commit_after>
<!-- This should probably go in the site styles... -->
<style type="text/css">
  table.qr {
    border-width: 0;
    border-style: none;
    border-color: #0000ff;
    border-collapse: collapse;
  }

  table.qr td {
    border-width: 0;
    border-style: none;
    border-color: #0000ff;
    border-collapse: collapse;
    padding: 0;
    margin: 0;
    width: 10px;
    height: 10px;
  }

  table.qr td.black { background-color: #000; }
  table.qr td.white { background-color: #fff; }

  .padded-dot {
    padding: 20px;
    display: inline-block;
    box-sizing: border-box;
    border: 1px dashed black;
    margin: auto;
  }
</style>
 
<div class="row">
  <div class="col-lg-5">
    <div class="padded-dot">
      <% qrc = qrcode(@bike) %>
      <table class="qr">
        <% qrc.modules.each_index do |x| -%>
          <tr>
            <% qrc.modules.each_index do |y| -%>
              <% if qrc.dark?(x,y) -%>
                <td class="black"/>
              <% else -%>
                <td class="white"/>
              <% end -%>
            <% end -%>
          </tr>
        <% end -%>
      </table>
    </div>
  </div>
  <div class="col-lg-7">
    <h1>Unique Bike Identifier</h1>
    <p>Print this out! Cut it up (on the dotted line)! Tape it on your bike (we recommended packing tape)! Lost? Stolen? Someone could find this and save your bacon!</p>
  </div>
</div>
{'fraction_non_alphanumeric': 0.17294220665499124, 'fraction_numerical': 0.019702276707530646, 'mean_word_length': 2.010540184453228, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '6583126', 'n_tokens_mistral': 888, 'n_tokens_neox': 813, 'n_words': 205}