<commit_before><% content_for :sidebar_title do %>
  <%= Spree.t(:integration) %>
<% end %>

<% content_for :sidebar do %>
  <nav class="menu" id="integration-menu">
    <ul class="sidebar">
      <li class="overview"><a href="/admin/integration">Overview</a></li>
      <li class="integrations"><a href="/admin/integration/integrations">Integrations</a></li>
      <li class="advanced">
        <a href="#" class='collapse'><i class="icon-caret-right"></i> Advanced</a>
        <ul class="sub-menu">
          <li class="registrations"><a href="/admin/integration/registrations">Registrations</a></li>
          <li class="schedulers"><a href="/admin/integration/schedulers">Schedulers</a></li>
          <li class="parameters"><a href="/admin/integration/parameters">Parameters</a></li>
          <li class="connections"><a href="/admin/integration/connections">Connections</a></li>
          <li class="testing"><a href="/admin/endpoint_testing">Testing</a></li>
        </ul>
      </li>
    </ul>
  </nav>
<% end %>

<script>
  $(function(){
    $('#integration-menu').find('.collapse').click(function(){
      if($(this).find('.icon-caret-right').length > 0){
        $(this).find('.icon-caret-right').removeClass('icon-caret-right').addClass('icon-caret-down');
      }
      else {
        $(this).find('.icon-caret-down').removeClass('icon-caret-down').addClass('icon-caret-right');
      }
      $(this).next().toggle('fast');
    })
  });
</script><commit_msg>Fix advanced menu jumps to the top of the page on click<commit_after><% content_for :sidebar_title do %>
  <%= Spree.t(:integration) %>
<% end %>

<% content_for :sidebar do %>
  <nav class="menu" id="integration-menu">
    <ul class="sidebar">
      <li class="overview"><a href="/admin/integration">Overview</a></li>
      <li class="integrations"><a href="/admin/integration/integrations">Integrations</a></li>
      <li class="advanced">
        <a href="#" class='collapse'><i class="icon-caret-right"></i> Advanced</a>
        <ul class="sub-menu">
          <li class="registrations"><a href="/admin/integration/registrations">Registrations</a></li>
          <li class="schedulers"><a href="/admin/integration/schedulers">Schedulers</a></li>
          <li class="parameters"><a href="/admin/integration/parameters">Parameters</a></li>
          <li class="connections"><a href="/admin/integration/connections">Connections</a></li>
          <li class="testing"><a href="/admin/endpoint_testing">Testing</a></li>
        </ul>
      </li>
    </ul>
  </nav>
<% end %>

<script>
  $(function(){
    $('#integration-menu').find('.collapse').click(function(e){
      e.preventDefault();
      if($(this).find('.icon-caret-right').length > 0){
        $(this).find('.icon-caret-right').removeClass('icon-caret-right').addClass('icon-caret-down');
      }
      else {
        $(this).find('.icon-caret-down').removeClass('icon-caret-down').addClass('icon-caret-right');
      }
      $(this).next().toggle('fast');
    })
  });
</script>
{'fraction_non_alphanumeric': 0.22451012952507474, 'fraction_numerical': 0.0006642311524410495, 'mean_word_length': 3.5498489425981874, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 99, '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': '6885175', 'n_tokens_mistral': 970, 'n_tokens_neox': 927, 'n_words': 129}