<commit_before># encoding: utf-8
module Refinery
  module Rates
    module RateTablesHelper

      def replace_rate_tables(content)
        content.to_str.gsub(/(?:#{Regexp.escape('<p>')})?\{\{rate_table\s+([\w\d_]+)}}(?:#{Regexp.escape('</p>')})?/ { |match|
          url = $1.gsub('_', '-')
          content_tag(:div, ::Refinery::Rates.content_for(url))
        }
      end

    end
  end
end<commit_msg>add class to rate_table div<commit_after># encoding: utf-8
module Refinery
  module Rates
    module RateTablesHelper

      def replace_rate_tables(content)
        content.to_str.gsub(/(?:#{Regexp.escape('<p>')})?\{\{rate_table\s+([\w\d_]+)}}(?:#{Regexp.escape('</p>')})?/ { |match|
          url = $1.gsub('_', '-')
          content_tag(:div, ::Refinery::Rates.content_for(url), :class => 'rate_table')
        }
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.20657276995305165, 'fraction_numerical': 0.004694835680751174, 'mean_word_length': 3.0235849056603774, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '818349', 'n_tokens_mistral': 313, 'n_tokens_neox': 310, 'n_words': 47}