<commit_before>require 'facebooker/rails/controller'
module ::ActionController
  class Base
    def self.inherited_with_facebooker(subclass)
      inherited_without_facebooker(subclass)
      if subclass.to_s == "ApplicationController"
        subclass.send(:include,Facebooker::Rails::Controller) 
        subclass.helper Facebooker::Rails::Helpers
      end
    end
    class << self
      alias_method_chain :inherited, :facebooker
    end

  end
  
  class AbstractRequest                         
    def relative_url_root                       
      "/#{ENV['FACEBOOKER_RELATIVE_URL_ROOT']}" 
    end                                         
  end                                           
  class UrlRewriter
    alias :rewrite_url_aliased_by_facebooker :rewrite_url
    def rewrite_url(options)
      options[:host] = "apps.facebook.com" if !options.has_key?(:host) && @request.request_parameters['fb_sig_in_canvas'] == "1"
      rewrite_url_aliased_by_facebooker(options)
    end
  end
end
require 'facbooker/rails/facebook_session_handling'<commit_msg>Fixing typo in init.rb<commit_after>require 'facebooker/rails/controller'
module ::ActionController
  class Base
    def self.inherited_with_facebooker(subclass)
      inherited_without_facebooker(subclass)
      if subclass.to_s == "ApplicationController"
        subclass.send(:include,Facebooker::Rails::Controller) 
        subclass.helper Facebooker::Rails::Helpers
      end
    end
    class << self
      alias_method_chain :inherited, :facebooker
    end

  end
  
  class AbstractRequest                         
    def relative_url_root                       
      "/#{ENV['FACEBOOKER_RELATIVE_URL_ROOT']}" 
    end                                         
  end                                           
  class UrlRewriter
    alias :rewrite_url_aliased_by_facebooker :rewrite_url
    def rewrite_url(options)
      options[:host] = "apps.facebook.com" if !options.has_key?(:host) && @request.request_parameters['fb_sig_in_canvas'] == "1"
      rewrite_url_aliased_by_facebooker(options)
    end
  end
end
require 'facebooker/rails/facebook_session_handling'
{'fraction_non_alphanumeric': 0.07904583723105706, 'fraction_numerical': 0.0009354536950420954, 'mean_word_length': 2.411483253588517, 'pattern_counts': {'":': 0, '<': 7, '<?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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5458634', 'n_tokens_mistral': 621, 'n_tokens_neox': 598, 'n_words': 102}