<commit_before>require 'action_view/helpers/jquery_helper'
require 'action_view/helpers/jquery_ui_helper'
require 'action_view/template/handlers/rjs'
require 'jquery-rjs/javascript_helper'
require 'jquery-rjs/rendering'

ActionView::Base.class_eval do
  cattr_accessor :debug_rjs
  self.debug_rjs = false
end

ActionView::Base.class_eval do
  include ActionView::Helpers::JqueryHelper
  include ActionView::Helpers::JqueryUiHelper
end

ActionView::TestCase.class_eval do
  include ActionView::Helpers::JqueryHelper
  include ActionView::Helpers::JqueryUiHelper
end

ActionView::Template.register_template_handler :rjs, ActionView::Template::Handlers::RJS.new
<commit_msg>Avoid weird NameError with Rails 4.1<commit_after>require 'action_view/helpers/jquery_helper'
require 'action_view/helpers/jquery_ui_helper'
require 'action_view/template/handlers/rjs'
require 'jquery-rjs/javascript_helper'
require 'jquery-rjs/rendering'

ActionView::Base.class_eval do
  cattr_accessor :debug_rjs
  self.debug_rjs = false
end

ActionView::Base.class_eval do
  include ActionView::Helpers::JqueryHelper
  include ActionView::Helpers::JqueryUiHelper
end

#FIXME Rails 4.1 fails to boot with a NameError "uninitialized constant AbstractController::Rendering"
# ActionView::TestCase.class_eval do
#   include ActionView::Helpers::JqueryHelper
#   include ActionView::Helpers::JqueryUiHelper
# end

ActionView::Template.register_template_handler :rjs, ActionView::Template::Handlers::RJS.new

{'fraction_non_alphanumeric': 0.09417344173441734, 'fraction_numerical': 0.0027100271002710027, 'mean_word_length': 8.23125, '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': '3503130', 'n_tokens_mistral': 460, 'n_tokens_neox': 469, 'n_words': 85}