<commit_before><% current_scale ||= 'all' %>
<script type="text/javascript">
    var scales_arr = [];
    <% (Scale.all.collect(&:key) + ['all']).each do |key| %>
        scales_arr.push('<%= key %>');
    <% end %>

    var current_scale = scales_arr.indexOf('<%= current_scale %>');

    function scales_onclick() {
        $$('#scale_list li').each(function(item){
            item.onclick = function(){
                <%= scale_slider_function %>
                if ($('scale')){
                    $('scale').value = this.id
                }
                return false;
            };
        });

    }

    if ($('scale')) {
        $('scale').value = scales_arr[current_scale];

    }
</script>
<%= javascript_include_tag "jquery-ui-1.8.14.custom.min","scales/scales" %>
<%= stylesheet_link_tag  "scales/scales" %>

<style>
    .ui-slider-vertical{
            height: <%= (Scale.count+1) * 1.85 %>em;
        }

</style>

<div class="row">

  <div class="col-md-5 col-sm-5">
  <div id="options"><commit_msg>OPSK-914 - test fix<commit_after><% current_scale ||= 'all' %>
<script type="text/javascript">
    var scales_arr = [];
    <% (Scale.all.collect(&:key) + ['all']).each do |key| %>
        scales_arr.push('<%= key %>');
    <% end %>

    var current_scale = scales_arr.indexOf('<%= current_scale %>');

    function scales_onclick() {
        $$('#scale_list li').each(function(item){
            item.onclick = function(){
                <%= scale_slider_function %>
                if ($('scale')){
                    $('scale').value = this.id
                }
                return false;
            };
        });

    }

    if ($('scale')) {
        $('scale').value = scales_arr[current_scale];

    }
</script>
<%= javascript_include_tag "jquery-ui-1.8.14.custom.min","scales/scales" %>
<%= stylesheet_link_tag  "scales/scales" %>

<style>
    .ui-slider-vertical{
            height: <%= (Scale.count+1) * 1.85 %>em;
        }

</style>

<div class="row" id="wrapper">

  <div class="col-md-5 col-sm-5">
  <div id="options">
{'fraction_non_alphanumeric': 0.20329936923823386, 'fraction_numerical': 0.011159631246967491, 'mean_word_length': 2.148091603053435, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '3615968', 'n_tokens_mistral': 734, 'n_tokens_neox': 656, 'n_words': 110}