<commit_before>class MongoInitializerGenerator < Rails::Generator::Base
  attr :file_name 
  
  def initialize(runtime_args, runtime_options = {})
    super
    @file_name = @args.first || 'default'
  end

  def manifest
    record do |m|
      m.directory 'config'
      m.directory 'config/initializers'
      
      m.file 'database.yml', "config/database.yml"      
      m.template 'initializer.rb', "config/initializers/mongomapper.rb"
    end
  end
end<commit_msg>overwrite database.yml when present<commit_after>class MongoInitializerGenerator < Rails::Generator::Base
  attr :file_name 
  
  def initialize(runtime_args, runtime_options = {})
    super
    @file_name = @args.first || 'default'
  end

  def manifest
    record do |m|
      m.directory 'config'
      m.directory 'config/initializers'
      
      m.file 'database.yml', "config/database.yml", :collision => :force
      m.template 'initializer.rb', "config/initializers/mongomapper.rb"
    end
  end
end
{'fraction_non_alphanumeric': 0.11020408163265306, 'fraction_numerical': 0.0, 'mean_word_length': 3.1923076923076925, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '2276239', 'n_tokens_mistral': 315, 'n_tokens_neox': 301, 'n_words': 66}