<commit_before><% search_url = url_for(params.merge(:controller => controller, :action => :browse, :page => 1, :update => 1, :escape => false)) -%>
<% form_remote_tag :url => search_url, :method => :post,
                   :html => { :action => search_url, :id => record_select_search_id } do %>
  <%= text_field_tag 'search', params[:search], :autocomplete => 'off', :class => 'text-input' %>
<% end %>

<script type="text/javascript">
//<![CDATA[
  var i = $$('#<%= record_select_search_id %> input').first();
  new Form.Element.Observer(i, 1.0, function(element, value) {
    element.parentNode.onsubmit();
    return false;
  });
//]]>
</script><commit_msg>tracked down the POST /browse problem! hooray.<commit_after><% search_url = url_for(params.merge(:controller => controller, :action => :browse, :page => 1, :update => 1, :escape => false)) -%>
<% form_remote_tag :url => search_url, :method => :get,
                   :html => { :action => search_url, :id => record_select_search_id } do %>
  <%= text_field_tag 'search', params[:search], :autocomplete => 'off', :class => 'text-input' %>
<% end %>

<script type="text/javascript">
//<![CDATA[
  var i = $(<%= record_select_search_id.to_json %>).down('input.text-input');
  new Form.Element.Observer(i, 1.0, function(element, value) {
    element.up('form').onsubmit();
    return false;
  });
//]]>
</script>
{'fraction_non_alphanumeric': 0.21444201312910285, 'fraction_numerical': 0.005835156819839533, 'mean_word_length': 4.256704980842912, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 43, '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': '202590', 'n_tokens_mistral': 488, 'n_tokens_neox': 454, 'n_words': 99}