<commit_before>if Rails.version =~ /^2\./
  gem 'oauth', '>=0.3.5'
  require 'oauth/signature/hmac/sha1'
  require 'oauth/request_proxy/action_controller_request'
  require 'oauth/server'
  require 'oauth/controllers/application_controller_methods'

  ActionController::Base.send :include, OAuth::Controllers::ApplicationControllerMethods
end<commit_msg>fixed to work with rails3<commit_after>require 'oauth'
require 'oauth/signature/hmac/sha1'
if Rails.version =~ /^3\./
  require 'oauth/request_proxy/rack_request'
else
  require 'oauth/request_proxy/action_controller_request'
end
require 'oauth/server'
require 'oauth/controllers/application_controller_methods'

  ActionController::Base.send :include, OAuth::Controllers::ApplicationControllerMethods
{'fraction_non_alphanumeric': 0.1152317880794702, 'fraction_numerical': 0.010596026490066225, 'mean_word_length': 6.957894736842105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3459134', 'n_tokens_mistral': 243, 'n_tokens_neox': 238, 'n_words': 41}