<commit_before>require 'rubygems'
require 'bundler'
Bundler.setup
Bundler.require
require 'uri'

db = URI.parse(ENV['DATABASE_URL'] || 'postgres://localhost/zurg')

ActiveRecord::Base.establish_connection(
  :adapter  => db.scheme == 'postgres' ? 'postgresql' : db.scheme,
  :host     => db.host,
  :username => db.user,
  :password => <PASSWORD>,
  :database => db.path[1..-1],
  :encoding => 'utf8'
)

require 'plugins/base'
require 'plugins/brain'
require 'plugins/twitter_logger'
require 'plugins/lastfm'
require 'plugins/message_manager'
require 'plugins/weather'
require 'models/message'

ActiveRecord::Migrator.migrate('./migrations')<commit_msg>Removing require of base and change the order of all requires<commit_after>require 'rubygems'
require 'bundler'
Bundler.setup
Bundler.require
require 'uri'

db = URI.parse(ENV['DATABASE_URL'] || 'postgres://localhost/zurg')

ActiveRecord::Base.establish_connection(
  :adapter  => db.scheme == 'postgres' ? 'postgresql' : db.scheme,
  :host     => db.host,
  :username => db.user,
  :password => <PASSWORD>,
  :database => db.path[1..-1],
  :encoding => 'utf8'
)

require 'models/message'
require 'plugins/lastfm'
require 'plugins/message_manager'
require 'plugins/twitter_logger'
require 'plugins/weather'
require 'plugins/brain'

ActiveRecord::Migrator.migrate('./migrations')
{'fraction_non_alphanumeric': 0.1585274229902329, 'fraction_numerical': 0.004507888805409466, 'mean_word_length': 5.466019417475728, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '713542', 'n_tokens_mistral': 455, 'n_tokens_neox': 452, 'n_words': 91}