<commit_before>module CamelCaser
  class Railtie < Rails::Railtie
    initializer 'camel_caser.insert_middleware' do |app|
      # handle request
      app.config.middleware.insert_after 'ActiveRecord::QueryCache',
                                          'CamelCaser::RequestMiddleware'
      # handle response
      app.config.middleware.use 'CamelCaser::ResponseMiddleware'
    end
  end
end<commit_msg>Changes rails middleware position<commit_after>module CamelCaser
  class Railtie < Rails::Railtie
    initializer 'camel_caser.insert_middleware' do |app|
      # handle request
      app.config.middleware.insert_after 'Rails::Rack::Logger',
                                          'CamelCaser::RequestMiddleware'
      # handle response
      app.config.middleware.use 'CamelCaser::ResponseMiddleware'
    end
  end
end
{'fraction_non_alphanumeric': 0.07961399276236429, 'fraction_numerical': 0.0, 'mean_word_length': 2.772727272727273, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5869843', 'n_tokens_mistral': 234, 'n_tokens_neox': 228, 'n_words': 44}