<commit_before><script type="text/javascript">

  function setInitialState(){
    $('#spinner').hide();
    $('.general-fields').hide();
    $('.all-asset-only').hide();
    $('.equipment-related-only').hide();
    $('.vehicle-related-only').hide();
    $('.facility-related-only').hide();
    $('#search-panel-controller').hide();
  };

  $(document).ready(function() {

    transam.enable_date_pickers();
    transam.make_same_height('.form_part');

      // Page Load Events

      setInitialState();

        // Add the class "All" to the first option in the Asset Selector
        // to ensure that the javascript can detect when a user has selected the the "Any . . ." option.
      $("#type-selector option:first").attr('class', 'All');

      // Search Form AJAX event handling // See https://github.com/rails/jquery-ujs/wiki/ajax
      $("form").on("ajax:send", function(xhr) {
        $('#results_table').hide();
        $('#spinner').show();<commit_msg>[fixes#142389311] show/hide query parameter collapsible panel correctly<commit_after><script type="text/javascript">

  function setInitialState(){
    $('#spinner').hide();
    $('.general-fields').hide();
    $('.all-asset-only').hide();
    $('.equipment-related-only').hide();
    $('.vehicle-related-only').hide();
    $('.facility-related-only').hide();
  };

  $(document).ready(function() {

    transam.enable_date_pickers();
    transam.make_same_height('.form_part');

      // Page Load Events

      setInitialState();

        // Add the class "All" to the first option in the Asset Selector
        // to ensure that the javascript can detect when a user has selected the the "Any . . ." option.
      $("#type-selector option:first").attr('class', 'All');

      // Search Form AJAX event handling // See https://github.com/rails/jquery-ujs/wiki/ajax
      $("form").on("ajax:send", function(xhr) {
        $('#results_table').hide();
        $('#spinner').show();
{'fraction_non_alphanumeric': 0.19650205761316872, 'fraction_numerical': 0.004629629629629629, 'mean_word_length': 3.1207627118644066, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6739241', 'n_tokens_mistral': 589, 'n_tokens_neox': 563, 'n_words': 124}