<commit_before>module FactoryGirlGenerator
  class Railtie < ::Rails::Railtie
    config.generators.fixture_replacement :factory_girl
    config.generators.test_unit[:fixture_replacement] = :factory_girl
  end
end<commit_msg>config.generator is deprecated in rails 3.1. Made mofications to support rails 3.1 config.app_generator<commit_after>module FactoryGirlGenerator
  class Railtie < ::Rails::Railtie
    generators = config.respond_to?(:app_generators) ? config.app_generators : config.generators
    generators.fixture_replacement :factory_girl
    generators.test_unit[:fixture_replacement] = :factory_girl
  end
end
{'fraction_non_alphanumeric': 0.07865168539325842, 'fraction_numerical': 0.006420545746388443, 'mean_word_length': 6.255813953488372, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4424505', 'n_tokens_mistral': 198, 'n_tokens_neox': 184, 'n_words': 37}