<commit_before><h3>
  Sections
  <% if @site.sections.size > 1 %>
    <%= link_to_function t(:'adva.sections.links.reorder'), "sections_tree.toggle(this, " + t(:'adva.resources.reordering_done') + ");", :id => 'reorder_sections' %>
    <%= image_tag '/images/adva_cms/indicator.gif', :id => 'sections_indicator', :style => 'display: none;' %>
  <% end -%>
</h3>

<ul id="sections">
  <%= render :partial => 'widgets/admin/section', :collection => @site.sections.roots %>
</ul>

<script type="text/javascript">
  var sections_tree = new SortableTree('sections', {
    onDrop: function(drag, drop, event) {
      <%= remote_function(:url => admin_sections_path(@site),
                          :method =>   :put,
                          :with   =>   "drag.to_params()",
                          :loading =>  "$('sections_indicator').show()",
                          :complete => "$('sections_indicator').hide()" ) %>
    }
  });<commit_msg>ok, a fix for the last fix...<commit_after><h3>
  Sections
  <% if @site.sections.size > 1 %>
    <%= link_to_function t(:'adva.sections.links.reorder'), "sections_tree.toggle(this, '" + t(:'adva.resources.reordering_done') + "');", :id => 'reorder_sections' %>
    <%= image_tag '/images/adva_cms/indicator.gif', :id => 'sections_indicator', :style => 'display: none;' %>
  <% end -%>
</h3>

<ul id="sections">
  <%= render :partial => 'widgets/admin/section', :collection => @site.sections.roots %>
</ul>

<script type="text/javascript">
  var sections_tree = new SortableTree('sections', {
    onDrop: function(drag, drop, event) {
      <%= remote_function(:url => admin_sections_path(@site),
                          :method =>   :put,
                          :with   =>   "drag.to_params()",
                          :loading =>  "$('sections_indicator').show()",
                          :complete => "$('sections_indicator').hide()" ) %>
    }
  });
{'fraction_non_alphanumeric': 0.20041972717733472, 'fraction_numerical': 0.0031479538300104933, 'mean_word_length': 2.73921568627451, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 47, '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': '6646621', 'n_tokens_mistral': 640, 'n_tokens_neox': 607, 'n_words': 102}