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

config_file_path = File.join(RAILS_ROOT, *%w(config settings.yml))
if File.exist?(config_file_path)
  config = YAML.load_file(config_file_path)
  APP_CONFIG = config.has_key?(RAILS_ENV) ? config[RAILS_ENV] : {}
else
  puts "WARNING: configuration file #{config_file_path} not found."
  APP_CONFIG = {}
end

Rails::Initializer.run do |config|
  # Specify gems that this application depends on. 
  # They can then be installed with "rake gems:install" on new installations.
  # You have to specify the :lib option for libraries, where the Gem name (sqlite3-ruby) differs from the file itself (sqlite3)
  config.gem "ym4r", :version => ">= 0.6.1"
  config.gem "json", :version => ">= 1.1.3"
  config.gem "google-geocode", :lib => "google_geocode", :version => "1.2.1"
  config.gem "httparty", :version => ">= 0.2.6"
  config.gem "nokogiri", :version => ">= 1.1.1"

  config.gem "thoughtbot-factory_girl", :lib => "factory_girl", :version => ">= 1.1.5"
  config.gem "mocha", :version => ">= 0.9.4"

  config.time_zone = 'UTC'

  config.action_controller.session = {
    :session_key => '_localpolitics.in_session',
    :secret      => '43f098bc82f9c8b2cffab59913f4fae6e1d28d2792f2971b987c8ca93a9c1e03b3d688346d16192a56e0f02314c2c9876f4de6a66f30d1e10f9b8a3231e7a48e'
  }<commit_msg>adding gem dependencies<commit_after>RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')

config_file_path = File.join(RAILS_ROOT, *%w(config settings.yml))
if File.exist?(config_file_path)
  config = YAML.load_file(config_file_path)
  APP_CONFIG = config.has_key?(RAILS_ENV) ? config[RAILS_ENV] : {}
else
  puts "WARNING: configuration file #{config_file_path} not found."
  APP_CONFIG = {}
end

Rails::Initializer.run do |config|
  config.gem "google-geocode", :lib => "google_geocode", :version => "1.2.1"
  config.gem "httparty", :version => ">= 0.2.6"
  config.gem "json", :version => ">= 1.1.3"
  config.gem "thoughtbot-factory_girl", :lib => "factory_girl", :version => ">= 1.1.5"
  config.gem "ym4r", :version => ">= 0.6.1"

  # gems used for testing don't need to be loaded, so they have the key :lib => false
  config.gem 'chrisk-fakeweb', :lib => false, :version => '>= 1.1.2.7', :source => 'http://gems.github.com'
  config.gem "mocha", :lib => false, :version => ">= 0.9.4"
  config.gem "nokogiri", :lib => false, :version => ">= 1.1.1"
  config.gem 'rspec', :lib => false, :version => '>= 1.1.12'
  config.gem 'rspec-rails', :lib => false, :version => '>= 1.1.12'

  config.time_zone = 'UTC'

  # FIXME:  secret key must be moved to settings file to avoid exposure
  config.action_controller.session = {
    :session_key => '_localpolitics.in_session',
    :secret      => '<KEY>'
  }
{'fraction_non_alphanumeric': 0.16416346489696124, 'fraction_numerical': 0.050646175340551866, 'mean_word_length': 4.550387596899225, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6920331', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1092, 'n_words': 234}