<commit_before>- tags = Tag.tags(:limit => 20, :order => "count DESC", :listing_type => listing_type)
- result = tag_cloud(tags, %w(tag1 tag2 tag3 tag4 tag5 tag6))

- if !tags.empty?
  &nbsp;
  #tag_cloud
    .left_panel_section
      .left_panel_title
        %h3= "Tag Cloud"      
        - if listing_type.eql?('offer')
          - result.each do |k, v|
            - if k == @tag
              = link_to k, offers_path, :class => "#{[v]} selected"
            - else
              = link_to k, offers_with_tag_path(k), :class => v
        - else
          - result.each do |k, v|
            - if k == @tag
              = link_to k, requests_path, :class => "#{[v]} selected"
            - else
              = link_to k, requests_with_tag_path(k), :class => v

:javascript
  var remember_tag = "#{params[:tag]}";<commit_msg>Fixed Tag Cloud title div to close before links<commit_after>- tags = Tag.tags(:limit => 20, :order => "count DESC", :listing_type => listing_type)
- result = tag_cloud(tags, %w(tag1 tag2 tag3 tag4 tag5 tag6))

- if !tags.empty?
  &nbsp;
  #tag_cloud
    .left_panel_section
      .left_panel_title
        %h3= "Tag Cloud"
      - if listing_type.eql?('offer')
        - result.each do |k, v|
          - if k == @tag
            = link_to k, offers_path, :class => "#{[v]} selected"
          - else
            = link_to k, offers_with_tag_path(k), :class => v
      - else
        - result.each do |k, v|
          - if k == @tag
            = link_to k, requests_path, :class => "#{[v]} selected"
          - else
            = link_to k, requests_with_tag_path(k), :class => v

:javascript
  var remember_tag = "#{params[:tag]}";
{'fraction_non_alphanumeric': 0.14765906362545017, 'fraction_numerical': 0.010804321728691477, 'mean_word_length': 2.02540834845735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '4873452', 'n_tokens_mistral': 578, 'n_tokens_neox': 563, 'n_words': 149}