<commit_before>require 'mkmf'

case RUBY_VERSION
when /1.9.3/, /2.0.0/, /2.1.0/
  abs_ruby_header_path = File.join(File.dirname(File.realpath(__FILE__)), "ruby_headers")
  version_suffix       = RUBY_VERSION.tr(".", "")

  $CFLAGS += " -I#{abs_ruby_header_path}/#{version_suffix}"
else
  raise "Sorry, but did_you_mean #{DidYouMean::VERSION} doesn't work with Ruby #{RUBY_VERSION}."
end

create_makefile 'method_missing'<commit_msg>Change extconf.rb for bundler<commit_after>require 'mkmf'

case RUBY_VERSION
when /1.9.3/, /2.0.0/, /2.1.0/
  abs_ruby_header_path = File.join(File.dirname(File.realpath(__FILE__)), "ruby_headers")
  version_suffix       = RUBY_VERSION.tr(".", "")

  $CFLAGS += " -I#{abs_ruby_header_path}/#{version_suffix}"
else
  raise "Sorry, but did_you_mean #{DidYouMean::VERSION} doesn't work with Ruby #{RUBY_VERSION}."
end

create_makefile 'did_you_mean/method_missing'
{'fraction_non_alphanumeric': 0.1590145576707727, 'fraction_numerical': 0.020156774916013438, 'mean_word_length': 5.123287671232877, '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': '4709766', 'n_tokens_mistral': 356, 'n_tokens_neox': 337, 'n_words': 60}