<commit_before>Factory.define :site do |f|
  f.name 'My Site'
  f.domain 'my.site'
end

Factory.define :organization do |f|
  f.site { Site.find_by_domain(ENV['TEST_REQ_HOST']) }
  f.name 'My Org'
end

Factory.define :source do |f|
  f.site { Site.find_by_domain(ENV['TEST_REQ_HOST']) }
  f.url 'http://a.valid.url'
  f.association :organization
end

Factory.define :venue do |f|
  f.site { Site.find_by_domain(ENV['TEST_REQ_HOST']) }
  f.sequence(:title) { |n| "Venue #{n}" }
  f.sequence(:description) { |n| "Description of Venue #{n}." }
  f.sequence(:address) { |n| "Address #{n}" }
  f.sequence(:street_address) { |n| "Street #{n}" }
  f.sequence(:locality) { |n| "City #{n}" }
  f.sequence(:region) { |n| "Region #{n}" }
  f.sequence(:postal_code) { |n| "#{n}-#{n}-#{n}" }
  f.sequence(:country) { |n| "Country #{n}" }
  f.sequence(:latitude) { |n| "45.#{n}".to_f }
  f.sequence(:longitude) { |n| "122.#{n}".to_f }
  f.sequence(:email) { |n| "<EMAIL>" }
  f.sequence(:telephone) { |n| "(#{n}#{n}#{n}) #{n}#{n}#{n}-#{n}#{n}#{n}#{n}" }
  f.sequence(:url) { |n| "http://#{n}.com" }
  f.closed false
  f.wifi true
  f.access_notes "Access permitted."
end

Factory.define :event, :class => Event do |f|
  f.site { Site.find_by_domain(ENV['TEST_REQ_HOST']) }
  f.sequence(:title) { |n| "Event #{n}" }<commit_msg>Get all tests to pass again (factory changes needed)<commit_after>Factory.define :site do |f|
  f.name 'My Site'
  f.domain 'my.site'
end

Factory.define :organization do |f|
  f.site { Site.find_by_domain(ENV['TEST_REQ_HOST']) }
  f.name 'My Org'
  f.contact_name "<NAME>"
  f.email '<EMAIL>'
end

Factory.define :source do |f|
  f.site { Site.find_by_domain(ENV['TEST_REQ_HOST']) }
  f.url 'http://a.valid.url'
  f.association :organization
end

Factory.define :venue do |f|
  f.site { Site.find_by_domain(ENV['TEST_REQ_HOST']) }
  f.sequence(:title) { |n| "Venue #{n}" }
  f.sequence(:description) { |n| "Description of Venue #{n}." }
  f.sequence(:address) { |n| "Address #{n}" }
  f.sequence(:street_address) { |n| "Street #{n}" }
  f.sequence(:locality) { |n| "City #{n}" }
  f.sequence(:region) { |n| "Region #{n}" }
  f.sequence(:postal_code) { |n| "#{n}-#{n}-#{n}" }
  f.sequence(:country) { |n| "Country #{n}" }
  f.sequence(:latitude) { |n| "45.#{n}".to_f }
  f.sequence(:longitude) { |n| "122.#{n}".to_f }
  f.sequence(:email) { |n| "<EMAIL>" }
  f.sequence(:telephone) { |n| "(#{n}#{n}#{n}) #{n}#{n}#{n}-#{n}#{n}#{n}#{n}" }
  f.sequence(:url) { |n| "http://#{n}.com" }
  f.closed false
  f.wifi true
  f.access_notes "Access permitted."
end

Factory.define :event, :class => Event do |f|
  f.site { Site.find_by_domain(ENV['TEST_REQ_HOST']) }
  f.sequence(:title) { |n| "Event #{n}" }
{'fraction_non_alphanumeric': 0.24141749723145073, 'fraction_numerical': 0.0036913990402362494, 'mean_word_length': 4.2215799614643545, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '761121', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1156, 'n_words': 224}