<commit_before># Be sure to restart your server when you modify this file

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

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

# Because the new ActiveSupport chokes ActiveMerchant
require 'active_support/all'

Rails::Initializer.run do |config|
  # Settings in config/environments/* take precedence over those specified here.
  # Application configuration should go into files in config/initializers
  # -- all .rb files in that directory are automatically loaded.

  # Add additional load paths for your own custom dirs
  # config.load_paths += %W( #{RAILS_ROOT}/extras )
  %w(middleware uploaders drops observers mailers jobs).each do |dir|
    config.load_paths << "#{RAILS_ROOT}/app/#{dir}"
  end

  # Specify gems that this application depends on and have them installed with rake gems:install
  # config.gem "bj"
  # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
  # config.gem "sqlite3-ruby", :lib => "sqlite3"
  # config.gem "aws-s3", :lib => "aws/s3"
  config.gem 'RedCloth'
  config.gem 'liquid', :version => '2.1.2'
  config.gem 'bcrypt-ruby', :lib => 'bcrypt', :version => '2.1.2'
  config.gem 'authlogic'
  config.gem 'delayed_job'
  config.gem 'will_paginate', :version => '2.3.12'
  config.gem 'carrierwave'
  config.gem 'braintree', :version => '2.2.0'
  config.gem 'shenie-ssl_requirement', :lib => 'ssl_requirement'
  config.gem 'twilio', :version => '2.8.0'
  config.gem 'newrelic_rpm'
  config.gem 'hoptoad_notifier'
  config.gem 'aasm'
  config.gem 'jnunemaker-validatable', :lib => 'validatable', :version => '>=1.8.4'
  config.gem 'geokit'
  config.gem 'bson', :version => '1.0.7'
  config.gem 'bson_ext', :version => '1.0.7'
  config.gem 'mongo', :version => '1.0.7'
  config.gem 'mongo_mapper', :version => '0.8.3'
  config.gem 'joint', :version => '0.3.2'
  
  # Only load the plugins named here, in the order given (default is alphabetical).
  # :all can be used as a placeholder for all plugins not explicitly named
  # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
  
  config.middleware.use "Navbar"
  
  require 'app/middleware/gridfs'
  mongo = YAML.load_file(Rails.root.join('config', 'mongo.yml'))[Rails.env]
  config.middleware.use "Rack::GridFS", <commit_msg>Update to Mongo 1.0.9 to try to fix problem<commit_after># Be sure to restart your server when you modify this file

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

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

# Because the new ActiveSupport chokes ActiveMerchant
require 'active_support/all'

Rails::Initializer.run do |config|
  # Settings in config/environments/* take precedence over those specified here.
  # Application configuration should go into files in config/initializers
  # -- all .rb files in that directory are automatically loaded.

  # Add additional load paths for your own custom dirs
  # config.load_paths += %W( #{RAILS_ROOT}/extras )
  %w(middleware uploaders drops observers mailers jobs).each do |dir|
    config.load_paths << "#{RAILS_ROOT}/app/#{dir}"
  end

  # Specify gems that this application depends on and have them installed with rake gems:install
  # config.gem "bj"
  # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
  # config.gem "sqlite3-ruby", :lib => "sqlite3"
  # config.gem "aws-s3", :lib => "aws/s3"
  config.gem 'RedCloth'
  config.gem 'liquid', :version => '2.1.2'
  config.gem 'bcrypt-ruby', :lib => 'bcrypt', :version => '2.1.2'
  config.gem 'authlogic'
  config.gem 'delayed_job'
  config.gem 'will_paginate', :version => '2.3.12'
  config.gem 'carrierwave'
  config.gem 'braintree', :version => '2.2.0'
  config.gem 'shenie-ssl_requirement', :lib => 'ssl_requirement'
  config.gem 'twilio', :version => '2.8.0'
  config.gem 'newrelic_rpm'
  config.gem 'hoptoad_notifier'
  config.gem 'aasm'
  config.gem 'jnunemaker-validatable', :lib => 'validatable', :version => '>=1.8.4'
  config.gem 'geokit'
  config.gem 'bson', :version => '1.0.9'
  config.gem 'bson_ext', :version => '1.0.9'
  config.gem 'mongo', :version => '1.0.9'
  config.gem 'mongo_mapper', :version => '0.8.3'
  config.gem 'joint', :version => '0.3.2'
  
  # Only load the plugins named here, in the order given (default is alphabetical).
  # :all can be used as a placeholder for all plugins not explicitly named
  # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
  
  config.middleware.use "Navbar"
  
  require 'app/middleware/gridfs'
  mongo = YAML.load_file(Rails.root.join('config', 'mongo.yml'))[Rails.env]
  config.middleware.use "Rack::GridFS", 
{'fraction_non_alphanumeric': 0.1401530406766009, 'fraction_numerical': 0.01792186870720902, 'mean_word_length': 4.2449841605068634, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 41, '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': '7018806', 'n_tokens_mistral': 1754, 'n_tokens_neox': 1697, 'n_words': 482}