<commit_before>-#
-# Parameters:
-#    widget: MiqWidget object
-#
%div.modboxin.rss_widget
  - style =  @sb[:dashboards][@sb[:active_db]][:minimized].include?(widget.id) ? 'display:none' : ''
  %div.mc{:id => "dd_w#{widget.id}_box", :style => style}
    - if widget.contents_for_user(session[:userid]).contents.blank?
      No RSS Feed data found . . .
    - else
      = widget.contents_for_user(session[:userid]).contents.gsub("https://localhost:3000",
          "#{request.protocol}://#{request.host}:#{request.port}").html_safe<commit_msg>Simplify HAML code using hidden_div_if.<commit_after>-#
-# Parameters:
-#    widget: MiqWidget object
-#
%div.modboxin.rss_widget
  = hidden_div_if(@sb[:dashboards][@sb[:active_db]][:minimized].include?(widget.id), :id => "dd_w#{widget.id}_box") do
    - if widget.contents_for_user(session[:userid]).contents.blank?
      No RSS Feed data found . . .
    - else
      = widget.contents_for_user(session[:userid]).contents.gsub("https://localhost:3000",
          "#{request.protocol}://#{request.host}:#{request.port}").html_safe
{'fraction_non_alphanumeric': 0.19553072625698323, 'fraction_numerical': 0.0074487895716946, 'mean_word_length': 4.2439024390243905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '3946492', 'n_tokens_mistral': 384, 'n_tokens_neox': 376, 'n_words': 46}