<commit_before><script type="text/javascript">
  var loaded_scales = new Array();
  loaded_scales['cell'] = true;
</script>
<%= render :partial => 'scales/scale_slider', :locals => {:current_scale => 'cell',:scale_slider_function => (remote_function(
        :url=>{:action=>'scale_search', :controller=>'scales'},
        :with=>"'scale_type='+this.id",
        :before=>"show_ajax_loader(this.id+'_results')",
        :condition=>'!loaded_scales[this.id]') +
        ";loaded_scales[this.id] = true;
        $$('#scaled_items > div').invoke('hide');
        $(this.id+'_results').show();")} %>

<!--Inserting the javascripts for loading tabber dynamically-->
<div id="js_for_tabber"></div>

<div id="scaled_items">
    <div id="cell_results" class="scaled_items">
      <% resource_hash = classify_for_tabs @scaled_objects -%>
      <%= render :partial => "assets/resource_listing_tabbed_by_class",
                   :locals => {:resource_hash => resource_hash,
                               :narrow_view => true,
                               :authorization_already_done => false, :limit => 20} -%>
    </div>
    <% Scale.all.map(&:title).reject{|s| s == 'cell'}.each do |s|%>
    <div id="<%= s %>_results" class="scaled_items" style="display: none;"></div>
    <% end %>
</div>


<commit_msg>changing home erb to match the change of the default scale in the controller<commit_after><script type="text/javascript">
  var loaded_scales = new Array();
  loaded_scales['cell'] = true;
</script>
<%= render :partial => 'scales/scale_slider', :locals => {:current_scale => 'cell',:scale_slider_function => (remote_function(
        :url=>{:action=>'scale_search', :controller=>'scales'},
        :with=>"'scale_type='+this.id",
        :before=>"show_ajax_loader(this.id+'_results')",
        :condition=>'!loaded_scales[this.id]') +
        ";loaded_scales[this.id] = true;
        $$('#scaled_items > div').invoke('hide');
        $(this.id+'_results').show();")} %>

<!--Inserting the javascripts for loading tabber dynamically-->
<div id="js_for_tabber"></div>

<div id="scaled_items">
    <div id="cell_results" class="scaled_items">
      <% resource_hash = classify_for_tabs @scaled_objects -%>
      <%= render :partial => "assets/resource_listing_tabbed_by_class",
                   :locals => {:resource_hash => resource_hash,
                               :narrow_view => true,
                               :authorization_already_done => false, :limit => 20} -%>
    </div>
    <% scale_titles = Scale.all.map(&:title)
       scale_titles = ['all'] + scale_titles
       scale_titles.reject{|s| s == 'cell'}.each do |s|%>
    <div id="<%= s %>_results" class="scaled_items" style="display: none;"></div>
    <% end %>
</div>



{'fraction_non_alphanumeric': 0.18907103825136612, 'fraction_numerical': 0.0014571948998178506, 'mean_word_length': 3.3449367088607596, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 71, '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': '403538', 'n_tokens_mistral': 928, 'n_tokens_neox': 866, 'n_words': 158}