<commit_before># encoding: utf-8
require 'rails/generators/mongoid_generator'

module Mongoid
  module Generators

    class ConfigGenerator < Rails::Generators::Base
      desc "Creates a Mongoid configuration file at config/database.mongo.yml"
      
      argument :database_name, :type => :string, :optional => true
      
      def self.source_root
        @_mongoid_source_root ||= File.expand_path("../templates", __FILE__)
      end
      
      def app_name
        Rails::Application.subclasses.first.parent.to_s.underscore
      # rescue
      #   "app"
      end
      
      def create_config_file
        template 'database.mongo.yml', File.join('config', "database.mongo.yml")
      end
      
    end

  end
end<commit_msg>Changed database.mongo.yml -> mongoid.yml a couple more places<commit_after># encoding: utf-8
require 'rails/generators/mongoid_generator'

module Mongoid
  module Generators

    class ConfigGenerator < Rails::Generators::Base
      desc "Creates a Mongoid configuration file at config/mongoid.yml"
      
      argument :database_name, :type => :string, :optional => true
      
      def self.source_root
        @_mongoid_source_root ||= File.expand_path("../templates", __FILE__)
      end
      
      def app_name
        Rails::Application.subclasses.first.parent.to_s.underscore
      # rescue
      #   "app"
      end
      
      def create_config_file
        template 'mongoid.yml', File.join('config', "mongoid.yml")
      end
      
    end

  end
end
{'fraction_non_alphanumeric': 0.09428950863213811, 'fraction_numerical': 0.0013280212483399733, 'mean_word_length': 2.5128205128205128, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '6610456', 'n_tokens_mistral': 462, 'n_tokens_neox': 443, 'n_words': 101}