<commit_before>require 'sub_diff/sub'
require 'sub_diff/version'

module SubDiff
  def sub_diff(*args, &block)
    Sub.new(self).diff(*args, &block)
  end

  def gsub_diff(*args, &block)
    Gsub.new(self).diff(*args, &block)
  end
end

String.send(:include, SubDiff)<commit_msg>Require gsub instead of sub<commit_after>require 'sub_diff/gsub'
require 'sub_diff/version'

module SubDiff
  def sub_diff(*args, &block)
    Sub.new(self).diff(*args, &block)
  end

  def gsub_diff(*args, &block)
    Gsub.new(self).diff(*args, &block)
  end
end

String.send(:include, SubDiff)
{'fraction_non_alphanumeric': 0.14659685863874344, 'fraction_numerical': 0.0, 'mean_word_length': 4.917525773195877, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '604206', 'n_tokens_mistral': 219, 'n_tokens_neox': 215, 'n_words': 45}