<commit_before>module FixMicrosoftLinks
  class Railtie < Rails::Railtie
    initializer 'fix_microsoft_links.register_middleware' do |app|
      app.config.middleware.insert_after ::Rack::Lock, FixMicrosoftLinks::Rack::Response
    end
  end
end<commit_msg>This gem is does not work in Rails4 since the Rack::Lock middleware is removed. My suggested fix is to use app.config.middleware.use instead of app.config.middleware.insert_after ::Rack::Lock.<commit_after>module FixMicrosoftLinks
  class Railtie < Rails::Railtie
    initializer 'fix_microsoft_links.register_middleware' do |app|
      app.config.middleware.use FixMicrosoftLinks::Rack::Response
    end
  end
end
{'fraction_non_alphanumeric': 0.0818452380952381, 'fraction_numerical': 0.001488095238095238, 'mean_word_length': 5.349056603773585, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2628527', 'n_tokens_mistral': 206, 'n_tokens_neox': 194, 'n_words': 52}