<commit_before>require 'test/unit'
require 'rubygems'
require 'mocha'
gem 'thoughtbot-shoulda', ">= 2.0.0"
require 'shoulda'
require 'action_controller'
require 'action_controller/test_process'
require 'active_record'
require File.join(File.dirname(__FILE__), "..", "lib", "hoptoad_notifier")

RAILS_ROOT = File.join( File.dirname(__FILE__), "rails_root" )
RAILS_ENV  = "test"

class HoptoadController < ActionController::Base
  def rescue_action e
    raise e
  end
  
  def do_raise
    raise "Hoptoad"
  end
  
  def do_not_raise
    render :text => "Success"
  end
  
  def do_raise_ignored<commit_msg>Locking to Rails <= 2.2.2 until rails-2.3 is merged in<commit_after>require 'test/unit'
require 'rubygems'
require 'mocha'
gem 'thoughtbot-shoulda', ">= 2.0.0"
require 'shoulda'
gem 'rails', "<= 2.2.2"
require 'action_controller'
require 'action_controller/test_process'
require 'active_record'
require File.join(File.dirname(__FILE__), "..", "lib", "hoptoad_notifier")

RAILS_ROOT = File.join( File.dirname(__FILE__), "rails_root" )
RAILS_ENV  = "test"

class HoptoadController < ActionController::Base
  def rescue_action e
    raise e
  end
  
  def do_raise
    raise "Hoptoad"
  end
  
  def do_not_raise
    render :text => "Success"
  end
  
  def do_raise_ignored
{'fraction_non_alphanumeric': 0.11981205951448708, 'fraction_numerical': 0.01096319498825372, 'mean_word_length': 4.605263157894737, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5033443', 'n_tokens_mistral': 479, 'n_tokens_neox': 461, 'n_words': 108}