<commit_before><div class='span12 topics-cloud'>
  <h3>
    <%= t(:topics, scope: "profiles.tag") %>
    <span class="topic-filter">
      <input type="text" value="" placeholder="Quick Filter" id="quick-filter" class="search-query" />
      <button class="btn" id="reset-quick-filter" title="Reset"><i class="icon-remove"></i></button>
    </span>

    <script type="text/javascript" charset="utf-8">

      // empty the input-field & show all topics
      $("#reset-quick-filter").on("click", function() {
        $("#quick-filter").val('');
        $(".s, .m, .l").css('display', 'inline');
      });

      // show matching & hide others
      $("#quick-filter").on('input', function(){
        var searchString       = $(this).val().toLowerCase();

        if (searchString.length > 1) {
          $(".s, .m, .l").each(function(index) {
            if ( $(this).text().toLowerCase().indexOf(searchString) >= 0 ) {
              $(this).css('display', 'inline');
            } else {
              $(this).css('display', 'none');
            }
          });
        } else {
          // show all
          $(".s, .m, .l").css('display', 'inline');
        };

      });
    </script>
  </h3>
  <% if params[:category] %>
    <% custom_tag_cloud @tags.sort { |x,y| x.name <=> y.name }, %w[s m l] do |topic, css_class| %>
      <%= topic_link topic, class: css_class %>
    <% end %>
  <% else %>
    <% tag_cloud Profile.is_published.topic_counts.sort { |x, y| x.name <=> y.name }, %w[s m l] do |topic, css_class| %>
      <%= topic_link topic, class: css_class %>
    <% end %><commit_msg>correct category filter<commit_after><div class='span12 topics-cloud'>
  <h3>
    <%= t(:topics, scope: "profiles.tag") %>
    <span class="topic-filter">
      <input type="text" value="" placeholder="Quick Filter" id="quick-filter" class="search-query" />
      <button class="btn" id="reset-quick-filter" title="Reset"><i class="icon-remove"></i></button>
    </span>

    <script type="text/javascript" charset="utf-8">

      // empty the input-field & show all topics
      $("#reset-quick-filter").on("click", function() {
        $("#quick-filter").val('');
        $(".s, .m, .l").css('display', 'inline');
      });

      // show matching & hide others
      $("#quick-filter").on('input', function(){
        var searchString       = $(this).val().toLowerCase();

        if (searchString.length > 1) {
          $(".s, .m, .l").each(function(index) {
            if ( $(this).text().toLowerCase().indexOf(searchString) >= 0 ) {
              $(this).css('display', 'inline');
            } else {
              $(this).css('display', 'none');
            }
          });
        } else {
          // show all
          $(".s, .m, .l").css('display', 'inline');
        };

      });
    </script>
  </h3>
  <% if params[:category_id] %>
    <% custom_tag_cloud @tags.sort { |x,y| x.name <=> y.name }, %w[s m l] do |topic, css_class| %>
      <%= topic_link topic, class: css_class %>
    <% end %>
  <% else %>
    <% tag_cloud Profile.is_published.topic_counts.sort { |x, y| x.name <=> y.name }, %w[s m l] do |topic, css_class| %>
      <%= topic_link topic, class: css_class %>
    <% end %>
{'fraction_non_alphanumeric': 0.22055607622617932, 'fraction_numerical': 0.0043736332396126214, 'mean_word_length': 2.3388946819603755, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 53, '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': '5915001', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1026, 'n_words': 214}