<commit_before>require 'rubygems'
require 'bundler'
require 'active_record'
require 'active_support'
require "best_boy/models/active_record/best_boy_event.rb"
require "best_boy/models/active_record/best_boy/eventable.rb"
require "best_boy/controllers/best_boy_controller.rb"
require 'rspec'
require 'rspec/autorun'
require 'shoulda'

root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :database => "#{root}/db/bestboy.db"
)
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS 'examples'")
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS 'best_boy_events'")
ActiveRecord::Schema.define do
  self.verbose = false

  create_table :best_boy_events, :force => true do |t|
    t.integer :owner_id
    t.string :owner_type
    t.string :event
    t.string :event_source
    t.timestamps
  end
  add_index :best_boy_events, :owner_id
  add_index :best_boy_events, :owner_type
  add_index :best_boy_events, [:owner_id, :owner_type]
  add_index :best_boy_events, :event

  create_table :examples, :force => true do |t|
    t.timestamps
  end<commit_msg>load new models in spec_helper<commit_after>require 'rubygems'
require 'bundler'
require 'active_record'
require 'active_support'
require "best_boy/models/active_record/best_boy_event.rb"
require "best_boy/models/active_record/best_boy/eventable.rb"
require "best_boy/models/active_record/best_boy_day_report.rb"
require "best_boy/models/active_record/best_boy_month_report.rb"
require "best_boy/controllers/best_boy_controller.rb"
require 'rspec'
require 'rspec/autorun'
require 'shoulda'

root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :database => "#{root}/db/bestboy.db"
)
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS 'examples'")
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS 'best_boy_events'")
ActiveRecord::Schema.define do
  self.verbose = false

  create_table :best_boy_events, :force => true do |t|
    t.integer :owner_id
    t.string :owner_type
    t.string :event
    t.string :event_source
    t.timestamps
  end
  add_index :best_boy_events, :owner_id
  add_index :best_boy_events, :owner_type
  add_index :best_boy_events, [:owner_id, :owner_type]
  add_index :best_boy_events, :event

  create_table :examples, :force => true do |t|
    t.timestamps
  end
{'fraction_non_alphanumeric': 0.11827515400410678, 'fraction_numerical': 0.0008213552361396304, 'mean_word_length': 5.90084985835694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4359588', 'n_tokens_mistral': 859, 'n_tokens_neox': 846, 'n_words': 163}