<commit_before>require File.expand_path(File.dirname(__FILE__) + '/test_helper')

tmp = $-w
$-w = nil
require 'action_controller'
require 'action_controller/test_process'
require 'active_record'
$-w = tmp
gem 'rails'
require 'initializer'
require File.dirname(__FILE__)+'/../init'
require 'facebooker/rails/controller'
require 'facebooker/rails/helpers/fb_connect'
require 'facebooker/rails/helpers'
require 'facebooker/rails/publisher'
require 'facebooker/rails/facebook_form_builder'

ActionController::Routing::Routes.draw do |map|
  map.connect '', :controller=>"facebook",:conditions=>{:canvas=>true}
  map.connect '', :controller=>"plain_old_rails"<commit_msg>Fix many 2.3.2 specs by including assertion modules<commit_after>require File.expand_path(File.dirname(__FILE__) + '/test_helper')

tmp = $-w
$-w = nil
require 'action_controller'
require 'action_controller/test_process'
require 'active_record'
$-w = tmp
gem 'rails'
require 'initializer'
require File.dirname(__FILE__)+'/../init'
require 'facebooker/rails/controller'
require 'facebooker/rails/helpers/fb_connect'
require 'facebooker/rails/helpers'
require 'facebooker/rails/publisher'
require 'facebooker/rails/facebook_form_builder'

if Rails.version > '2.3'
  include Test::Unit::Assertions
  include ActionController::TestCase::Assertions
  include ActionController::TestProcess
end

ActionController::Routing::Routes.draw do |map|
  map.connect '', :controller=>"facebook",:conditions=>{:canvas=>true}
  map.connect '', :controller=>"plain_old_rails"
{'fraction_non_alphanumeric': 0.13994743758212877, 'fraction_numerical': 0.0032851511169513796, 'mean_word_length': 7.461111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '5598632', 'n_tokens_mistral': 479, 'n_tokens_neox': 464, 'n_words': 92}