<commit_before>module Badgeable
  class Railtie < ::Rails::Railtie
    initializer do
      Badgeable::Config.badge_definitions = Pathname.new("#{Rails.root}/lib/badges.rb")
    end
    
    config.to_prepare "badgeable.load_badges" do
      Badgeable::Dsl.class_eval(File.read(Badgeable::Config.badge_definitions))
    end
  end
end<commit_msg>bugfix: initializer block takes a name<commit_after>module Badgeable
  class Railtie < ::Rails::Railtie
    initializer "badgeable.assign_badge_definitions_file" do
      Badgeable::Config.badge_definitions = Pathname.new("#{Rails.root}/lib/badges.rb")
    end
    
    config.to_prepare "badgeable.load_badges" do
      Badgeable::Dsl.class_eval(File.read(Badgeable::Config.badge_definitions))
    end
  end
end
{'fraction_non_alphanumeric': 0.1083223249669749, 'fraction_numerical': 0.0, 'mean_word_length': 4.414285714285715, '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': '2193180', 'n_tokens_mistral': 272, 'n_tokens_neox': 265, 'n_words': 39}