<commit_before>require 'active_record'

# Setup AR connection, schema
ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :dbfile  => ":memory:"
)

ActiveRecord::Schema.define do
  create_table :ar_models do |table|
    table.column :name, :string
  end
end

require File.dirname(__FILE__) + '/../spec_helper'
require File.dirname(__FILE__) + '/../fixtures/ar'

describe 'Paginate::AR' do 
  before(:each) do<commit_msg>In Paginate::AR spec, update connection to use :database key (instead of deprecated :dbfile)<commit_after>require 'active_record'

# Setup AR connection, schema
ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :database  => ":memory:"
)

ActiveRecord::Schema.define do
  create_table :ar_models do |table|
    table.column :name, :string
  end
end

require File.dirname(__FILE__) + '/../spec_helper'
require File.dirname(__FILE__) + '/../fixtures/ar'

describe 'Paginate::AR' do 
  before(:each) do
{'fraction_non_alphanumeric': 0.13955928646379853, 'fraction_numerical': 0.002098635886673662, 'mean_word_length': 5.076433121019108, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, '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': '2066365', 'n_tokens_mistral': 310, 'n_tokens_neox': 301, 'n_words': 77}