<commit_before># Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

#-------------------------------------------------------------------------------

# Load CONF before modules
require File.join(File.dirname(__FILE__), 'conf')

#-------------------------------------------------------------------------------

Rails::Initializer.run do |config|
  # Compass needs HAML to be installed as gem, not in vendor/plugins/haml
  config.gem 'haml', :version => '>= 2.1'
  config.gem 'chriseppstein-compass', :version => '>= 0.3.7', :lib => 'compass'

  # Evaluate gems.rb from all modules
  files = Dir.glob("#{RAILS_ROOT}/modules/**/gems.rb")
  lines = files.inject('') { |tmp_lines, file| tmp_lines << File.read(file) }
  eval(lines)

  config.time_zone = 'UTC'
  # The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
  # All files from config/locales/*.rb,yml are added automatically.
  config.i18n.load_path += Dir[File.join(RAILS_ROOT, '/modules/**/config/locales/*.{rb,yml}')]
  config.i18n.default_locale = CONF[:locale]

  config.plugin_paths += %W(
    #{RAILS_ROOT}/modules/core
    #{RAILS_ROOT}/modules/standard
    #{RAILS_ROOT}/modules/extended)

  # Prevent error relating to autoreload in development environment, ex:
  # * "A copy of ApplicationController has been removed from the module tree but is still active!"
  # * undefined local variable or method `mod' for #<ContentsController:0x2475598>
  config.load_once_paths += %W{#{RAILS_ROOT}/app/controllers}

  # Only load the plugins named here, in the order given. By default, all plugins
  # in vendor/plugins are loaded in alphabetical order.
  # :all can be used as a placeholder for all plugins not explicitly named<commit_msg>Add faker to required gem list<commit_after># Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

#-------------------------------------------------------------------------------

# Load CONF before modules
require File.join(File.dirname(__FILE__), 'conf')

#-------------------------------------------------------------------------------

Rails::Initializer.run do |config|
  # Compass needs HAML to be installed as gem, not in vendor/plugins/haml
  config.gem 'faker'
  config.gem 'haml', :version => '>= 2.1'
  config.gem 'chriseppstein-compass', :version => '>= 0.3.7', :lib => 'compass'

  # Evaluate gems.rb from all modules
  files = Dir.glob("#{RAILS_ROOT}/modules/**/gems.rb")
  lines = files.inject('') { |tmp_lines, file| tmp_lines << File.read(file) }
  eval(lines)

  config.time_zone = 'UTC'
  # The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
  # All files from config/locales/*.rb,yml are added automatically.
  config.i18n.load_path += Dir[File.join(RAILS_ROOT, '/modules/**/config/locales/*.{rb,yml}')]
  config.i18n.default_locale = CONF[:locale]

  config.plugin_paths += %W(
    #{RAILS_ROOT}/modules/core
    #{RAILS_ROOT}/modules/standard
    #{RAILS_ROOT}/modules/extended)

  # Prevent error relating to autoreload in development environment, ex:
  # * "A copy of ApplicationController has been removed from the module tree but is still active!"
  # * undefined local variable or method `mod' for #<ContentsController:0x2475598>
  config.load_once_paths += %W{#{RAILS_ROOT}/app/controllers}

  # Only load the plugins named here, in the order given. By default, all plugins
  # in vendor/plugins are loaded in alphabetical order.
  # :all can be used as a placeholder for all plugins not explicitly named
{'fraction_non_alphanumeric': 0.1804003724394786, 'fraction_numerical': 0.008845437616387336, 'mean_word_length': 3.1516908212560386, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '2446300', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1237, 'n_words': 410}