<commit_before><form class="search" method="get" action="/<%= base_path('search') %>">
  Search: <input name="q" type="search" placeholder="Search" id="search_box" size="30" value="<%= @query %>" />
</form>
<script type="text/javascript" charset="utf-8">
  $('#search_box').autocomplete('/<%= base_path('search') %>', {
    width: 340,
    formatItem: function(item) {
      var values = item[0].split(",");
      return values[0] + (values[1] == '' ? "" : " <small>(" + values[1] + ")</small>");
    }
  }).result(function(event, item) {
    var values = item[0].split(",")
    $('#search_box').val(values[1]);
    location.href = values[3];
    return false;
  });
</script>
<style>
  .frames form.search { position: absolute; right: 14px; top: -6px; padding-top: 10px; }
  .frames #menu .noframes { float: none; }
  .frames #menu { float: left; }
  .frames #content h1 { margin-top: 15px; }
</style>

<div id="menu"><commit_msg>Smaller autocomplete window on right side<commit_after><form class="search" method="get" action="/<%= base_path('search') %>">
  Search: <input name="q" type="search" placeholder="Search" id="search_box" size="30" value="<%= @query %>" />
</form>
<script type="text/javascript" charset="utf-8">
  $(function() {
    $('#search_box').autocomplete('/<%= base_path('search') %>', {
      width: document.body.className == 'frames' ? 250 : 340,
      formatItem: function(item) {
        var values = item[0].split(",");
        return values[0] + (values[1] == '' ? "" : " <small>(" + values[1] + ")</small>");
      }
    }).result(function(event, item) {
      var values = item[0].split(",")
      $('#search_box').val(values[1]);
      location.href = values[3];
      return false;
    });
  });
</script>
<style>
  .frames form.search { position: absolute; right: 14px; top: -6px; padding-top: 10px; }
  .frames #menu .noframes { float: none; }
  .frames #menu { float: left; }
  .frames #content h1 { margin-top: 15px; }
</style>

<div id="menu">
{'fraction_non_alphanumeric': 0.23018677435638565, 'fraction_numerical': 0.02271580010095911, 'mean_word_length': 3.86977886977887, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '3870222', 'n_tokens_mistral': 704, 'n_tokens_neox': 677, 'n_words': 152}