<commit_before><commit_msg>Monkey patch ammeter to fix issue with changes to delegate from Rails 4<commit_after>require 'ammeter'
# Rails 4 changes the implementation of delegate to no longer use send.  
#Because of this it can no longer be used to delegate to a protected of another object as Ammeter attempts to do for prepare_destination
#Monkey patch Ammeter to call send itself for perpare_destination when in Rails 4.
#Needed until Ammeter fixes itself
module Ammeter
  module RSpec
    module Rails
      # Delegates to Rails::Generators::TestCase to work with RSpec.
      module GeneratorExampleGroup
        module ClassMethods
          def prepare_destination
            self.test_unit_test_case_delegate.send :prepare_destination
          end
        end
      end
    end
  end
end if ::Rails::VERSION::MAJOR == 4
{'fraction_non_alphanumeric': 0.03739445114595899, 'fraction_numerical': 0.0048250904704463205, 'mean_word_length': 3.4623655913978495, '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': '5181686', 'n_tokens_mistral': 223, 'n_tokens_neox': 212, 'n_words': 98}