<commit_before>RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')

unless File.exist?(config_filename = "#{Rails.root}/config/database.yml")
  puts config_filename
  require 'fileutils'
  FileUtils.cp("#{config_filename}.example", config_filename)
end

Rails::Initializer.run do |config|
  config.action_controller.session_store = :active_record_store
  config.action_controller.cache_store = :file_store, "#{Rails.root}/cache"
  config.log_path = File.join(File.dirname(__FILE__), "../log/#{RAILS_ENV}.log")
  config.database_configuration_file = File.expand_path(File.join(File.dirname(__FILE__), 'database.yml'))
  config.load_paths << "#{Rails.root}/app/sweepers"
  config.plugin_paths << "#{Rails.root}/plugins"
  config.time_zone = 'UTC'
  config.i18n.default_locale = File.exist?("#{RAILS_ROOT}/config/locale") ? File.read("#{RAILS_ROOT}/config/locale").strip.to_sym : :en
  config.i18n.load_path << Dir["#{RAILS_ROOT}/plugins/**/config/locales/*.{rb,yml}"]
  # dependencies 
  config.gem 'transaction-simple',     :version => '~> 1.4.0', :lib => 'transaction/simple'
  config.gem 'color',                  :version => '~> 1.4.0'
  config.gem 'pdf-writer',             :version => '~> 1.1.8'<commit_msg>Fix gem load of pdf-writer dependency.<commit_after>RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')

unless File.exist?(config_filename = "#{Rails.root}/config/database.yml")
  puts config_filename
  require 'fileutils'
  FileUtils.cp("#{config_filename}.example", config_filename)
end

Rails::Initializer.run do |config|
  config.action_controller.session_store = :active_record_store
  config.action_controller.cache_store = :file_store, "#{Rails.root}/cache"
  config.log_path = File.join(File.dirname(__FILE__), "../log/#{RAILS_ENV}.log")
  config.database_configuration_file = File.expand_path(File.join(File.dirname(__FILE__), 'database.yml'))
  config.load_paths << "#{Rails.root}/app/sweepers"
  config.plugin_paths << "#{Rails.root}/plugins"
  config.time_zone = 'UTC'
  config.i18n.default_locale = File.exist?("#{RAILS_ROOT}/config/locale") ? File.read("#{RAILS_ROOT}/config/locale").strip.to_sym : :en
  config.i18n.load_path << Dir["#{RAILS_ROOT}/plugins/**/config/locales/*.{rb,yml}"]
  # dependencies 
  config.gem 'transaction-simple',     :version => '~> 1.4.0', :lib => 'transaction/simple'
  config.gem 'color',                  :version => '~> 1.4.0'
  config.gem 'pdf-writer',             :version => '~> 1.1.8', :lib => 'pdf/writer'
{'fraction_non_alphanumeric': 0.1772885283893395, 'fraction_numerical': 0.012359984550019312, 'mean_word_length': 4.833333333333333, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 18, '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': '5681756', 'n_tokens_mistral': 928, 'n_tokens_neox': 909, 'n_words': 124}