<commit_before>class Rails
  def self.root
    File.dirname(__FILE__)
  end
end

require 'test/unit'
require 'rubygems'
require 'active_record'
require 'active_record/fixtures'

begin
  require 'ruby-debug'
rescue LoadError
  # no debugger available
end


config = ActiveRecord::Base.configurations = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config[ENV['DB']] || config['postgresql'])

require 'uvi'

class ActiveSupport::TestCase #:nodoc:
  include ActiveRecord::TestFixtures
  self.fixture_path = "#{File.dirname(__FILE__)}/fixtures/"
  ActiveRecord::Migration.verbose = false
end

class Locomotive < ActiveRecord::Base
  abstract_class = true;
end
class SteamLocomotive < Locomotive
  self.table_name =  'steam_locomotives'
end
class ElectricLocomotive < Locomotive
  self.table_name =  'electric_locomotives'
end
class MaglevLocomotive < ElectricLocomotive
  self.table_name =  'maglev_locomotives'
end
class RackLocomotive < Locomotive
  self.table_name =  'rack_locomotives'
end

class Vehicle < ActiveRecord::Base
  abstract_class = true;
  set_inheritance_column :vehicle_type
end
class WheeledVehicle < Vehicle
  self.table_name =  'wheeled_vehicles'
end
class RailedVehicle < Vehicle
  self.table_name =  'railed_vehicles'
end
class Boat < Vehicle
  self.table_name =  'boats'
end
class Car < WheeledVehicle
  self.table_name =  'cars'
end
class Bicycle < WheeledVehicle
  self.table_name =  'bicycles'
end
class Train < RailedVehicle<commit_msg>Fixed deprecation warning<commit_after>class Rails
  def self.root
    File.dirname(__FILE__)
  end
end

require 'test/unit'
require 'rubygems'
require 'active_record'
require 'active_record/fixtures'

begin
  require 'ruby-debug'
rescue LoadError
  # no debugger available
end


config = ActiveRecord::Base.configurations = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config[ENV['DB']] || config['postgresql'])

require 'uvi'

class ActiveSupport::TestCase #:nodoc:
  include ActiveRecord::TestFixtures
  self.fixture_path = "#{File.dirname(__FILE__)}/fixtures/"
  ActiveRecord::Migration.verbose = false
end

class Locomotive < ActiveRecord::Base
  abstract_class = true;
end
class SteamLocomotive < Locomotive
  self.table_name =  'steam_locomotives'
end
class ElectricLocomotive < Locomotive
  self.table_name =  'electric_locomotives'
end
class MaglevLocomotive < ElectricLocomotive
  self.table_name =  'maglev_locomotives'
end
class RackLocomotive < Locomotive
  self.table_name =  'rack_locomotives'
end

class Vehicle < ActiveRecord::Base
  abstract_class = true;
  self.inheritance_column = :vehicle_type
end
class WheeledVehicle < Vehicle
  self.table_name =  'wheeled_vehicles'
end
class RailedVehicle < Vehicle
  self.table_name =  'railed_vehicles'
end
class Boat < Vehicle
  self.table_name =  'boats'
end
class Car < WheeledVehicle
  self.table_name =  'cars'
end
class Bicycle < WheeledVehicle
  self.table_name =  'bicycles'
end
class Train < RailedVehicle
{'fraction_non_alphanumeric': 0.09734789391575663, 'fraction_numerical': 0.0, 'mean_word_length': 5.721174004192872, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 3, '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': '2182821', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1072, 'n_words': 233}