<commit_before>module GriffithCommon
  module BootstrapHelpers
    
    def panel_for heading, opts = {}
      heading = heading.to_s.titleize
      opts = {class: 'panel-default'}.merge(opts)

      content_tag :div, class: "panel #{opts[:class]}" do
        concat content_tag(:div, 
                           content_tag(:h3, 
                                       heading, 
                                       class: 'panel-title center'),
                           class: 'panel-heading')
        yield
      end.html_safe
    end

    def badge count
      "<span class='badge'>#{count}</span>"
    end
    
    module Icon
      def icon name
        "<i class='fa fa-#{name.to_s} fa-fw'></i>".html_safe
      end
    end
    
    include Icon

  end
end<commit_msg>try and fix the pull-right issue with badges<commit_after>module GriffithCommon
  module BootstrapHelpers

    def panel_for heading, opts = {}
      heading = heading.to_s.titleize
      opts = {class: 'panel-default'}.merge(opts)

      content_tag :div, class: "panel #{opts[:class]}" do
        concat content_tag(:div,
                           content_tag(:h3,
                                       heading,
                                       class: 'panel-title center'),
                           class: 'panel-heading')
        yield
      end.html_safe
    end

    def badge count
      "<span class='badge pull-right'>#{count}</span>".html_safe
    end

    module Icon
      def icon name
        "<i class='fa fa-#{name.to_s} fa-fw'></i>".html_safe
      end
    end

    include Icon

  end
end
{'fraction_non_alphanumeric': 0.10219435736677115, 'fraction_numerical': 0.0012539184952978057, 'mean_word_length': 1.5133858267716536, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7473918', 'n_tokens_mistral': 457, 'n_tokens_neox': 445, 'n_words': 111}