<commit_before>class Riddle::AutoVersion
  def self.configure
    controller = Riddle::Controller.new nil, ''
    version    = ENV['SPHINX_VERSION'] || controller.sphinx_version

    case version
    when '0.9.8', '0.9.9'
      require "riddle/#{version}"
    when /1.10/
      require 'riddle/1.10'
    when /2.0.[12]/
      require 'riddle/2.0.1'
    when /2.0.[^12]/, /2.1.\d/, /2.2.\d/
      require 'riddle/2.1.0'
    end
  end
end<commit_msg>AutoVersion defaults to 2.1.0 compatibility.<commit_after>class Riddle::AutoVersion
  def self.configure
    controller = Riddle::Controller.new nil, ''
    version    = ENV['SPHINX_VERSION'] || controller.sphinx_version

    case version
    when '0.9.8', '0.9.9'
      require "riddle/#{version}"
    when /1.10/
      require 'riddle/1.10'
    when /2.0.[12]/
      require 'riddle/2.0.1'
    else
      require 'riddle/2.1.0'
    end
  end
end
{'fraction_non_alphanumeric': 0.1564245810055866, 'fraction_numerical': 0.061452513966480445, 'mean_word_length': 2.355805243445693, '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': '6170315', 'n_tokens_mistral': 349, 'n_tokens_neox': 337, 'n_words': 68}