<commit_before>require 'reform'
require 'minitest/autorun'

class ReformSpec < MiniTest::Spec
  let (:duran)  { OpenStruct.new(:name => "<NAME>") }
  let (:rio)    { OpenStruct.new(:title => "Rio") }
end

require 'active_record'
class Artist < ActiveRecord::Base
end
ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :database => "#{Dir.pwd}/database.sqlite3"
)

#Artist.delete_all

class BaseTest < MiniTest::Spec
  class AlbumForm < Reform::Form
    property :title

    property :hit do<commit_msg>make tests more restrictive by using Struct where was OpenStruct.<commit_after>require 'reform'
require 'minitest/autorun'

class ReformSpec < MiniTest::Spec
  let (:duran)  { Struct.new(:name).new("<NAME>") }
  let (:rio)    { Struct.new(:title).new("Rio") }
end

require 'active_record'
class Artist < ActiveRecord::Base
end
ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :database => "#{Dir.pwd}/database.sqlite3"
)

#Artist.delete_all

class BaseTest < MiniTest::Spec
  class AlbumForm < Reform::Form
    property :title

    property :hit do
{'fraction_non_alphanumeric': 0.1427255985267035, 'fraction_numerical': 0.003683241252302026, 'mean_word_length': 5.005524861878453, 'pattern_counts': {'":': 0, '<': 13, '<?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': '1833662', 'n_tokens_mistral': 370, 'n_tokens_neox': 358, 'n_words': 84}