<commit_before>#--
# Copyright (c) 2006 <NAME> (http://labnotes.org)
# Under MIT and/or CC By license.
#++

require File.dirname(__FILE__) + '/../abstract_unit'
require File.dirname(__FILE__) + '/fake_controllers'
require "action_mailer"


class AssertSelectTest < Test::Unit::TestCase
  class AssertSelectController < ActionController::Base
    def response_with=(content)
      @content = content
    end

    def response_with(&block)<commit_msg>Require action mailer more gracefully<commit_after>#--
# Copyright (c) 2006 <NAME> (http://labnotes.org)
# Under MIT and/or CC By license.
#++

require File.dirname(__FILE__) + '/../abstract_unit'
require File.dirname(__FILE__) + '/fake_controllers'


unless defined?(ActionMailer)
  begin
    $:.unshift(File.dirname(__FILE__) + "/../../../actionmailer/lib")
    require 'active_mailer'
  rescue LoadError
    require 'rubygems'
    require_gem 'actionmailer'
  end
end

class AssertSelectTest < Test::Unit::TestCase
  class AssertSelectController < ActionController::Base
    def response_with=(content)
      @content = content
    end

    def response_with(&block)
{'fraction_non_alphanumeric': 0.129695885509839, 'fraction_numerical': 0.007155635062611807, 'mean_word_length': 4.303317535545023, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '668136', 'n_tokens_mistral': 347, 'n_tokens_neox': 333, 'n_words': 82}