<commit_before>Factory.define :asset do |f|
  f.sequence(:caption) { |n| "Asset##{n}" }
  f.dragonfly File.new("#{Rails.root}/public/images/rails.png")
  f.dragonfly_required File.new("#{Rails.root}/public/images/rails.png")
  f.paperclip File.new("#{Rails.root}/public/images/rails.png")
end

Factory.define :case do |f|
  # This is an STI model which inherits from Entry
  f.sequence(:title) { |n| "Title##{n}" }
  f.content "Body of the entry"
end

Factory.define :category do |f|
  f.sequence(:name) { |n| "Category##{n}" }
end

Factory.define :comment do |f|
  f.sequence(:name) { |n| "Name#{n}" }
  f.sequence(:email) { |n| "<EMAIL>" }
  f.body "Body of the comment"
  f.association :post
end

Factory.define :entry do |f|
  f.sequence(:title) { |n| "Title##{n}" }
  f.content "Body of the entry"
end

Factory.define :page do |f|
  f.sequence(:title) { |n| "Title##{n}" }
  f.body "Content"
end

Factory.define :post do |f|
  f.sequence(:title) { |n| "Post##{n}" }
  f.body "Body"
  f.status "published"
end

Factory.define :typus_user do |f|
  f.sequence(:email) { |n| "<EMAIL>" }
  f.role "admin"
  f.status true
  f.token "<PASSWORD>"
  f.password "<PASSWORD>"
end

Factory.define :view do |f|
  f.ip "127.0.0.1"
  f.association :post
end

##
# has_one relationships
#

Factory.define :invoice do |f|
  f.sequence(:number) { |n| "Invoice##{n}" }
  f.association :order
end

Factory.define :order do |f|
  f.sequence(:number) { |n| "Order##{n}" }
end
<commit_msg>Factories for the HasManyThrough association<commit_after>Factory.define :asset do |f|
  f.sequence(:caption) { |n| "Asset##{n}" }
  f.dragonfly File.new("#{Rails.root}/public/images/rails.png")
  f.dragonfly_required File.new("#{Rails.root}/public/images/rails.png")
  f.paperclip File.new("#{Rails.root}/public/images/rails.png")
end

Factory.define :case do |f|
  # This is an STI model which inherits from Entry
  f.sequence(:title) { |n| "Title##{n}" }
  f.content "Body of the entry"
end

Factory.define :category do |f|
  f.sequence(:name) { |n| "Category##{n}" }
end

Factory.define :comment do |f|
  f.sequence(:name) { |n| "Name#{n}" }
  f.sequence(:email) { |n| "<EMAIL>" }
  f.body "Body of the comment"
  f.association :post
end

Factory.define :entry do |f|
  f.sequence(:title) { |n| "Title##{n}" }
  f.content "Body of the entry"
end

Factory.define :page do |f|
  f.sequence(:title) { |n| "Title##{n}" }
  f.body "Content"
end

Factory.define :post do |f|
  f.sequence(:title) { |n| "Post##{n}" }
  f.body "Body"
  f.status "published"
end

Factory.define :typus_user do |f|
  f.sequence(:email) { |n| "<EMAIL>" }
  f.role "admin"
  f.status true
  f.token "<PASSWORD>"
  f.password "<PASSWORD>8"
end

Factory.define :view do |f|
  f.ip "127.0.0.1"
  f.association :post
end

##
# has_one relationships
#

Factory.define :invoice do |f|
  f.sequence(:number) { |n| "Invoice##{n}" }
  f.association :order
end

Factory.define :order do |f|
  f.sequence(:number) { |n| "Order##{n}" }
end

##
# HasManyThrough
#

Factory.define :user do |f|
  f.sequence(:name) { |n| "User#{n}" }
  f.sequence(:email) { |n| "<EMAIL>" }
end

Factory.define :project do |f|
  f.sequence(:name) { |n| "Project#{n}" }
  f.association :user
end

Factory.define :project_collaborators do |f|
  f.association :user
  f.association :project
end

{'fraction_non_alphanumeric': 0.1918305597579425, 'fraction_numerical': 0.003933434190620273, 'mean_word_length': 3.9789156626506026, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5855455', 'n_tokens_mistral': 1326, 'n_tokens_neox': 1317, 'n_words': 319}