<commit_before>
Factory.define :article, :class => Article do |document|
  document.sequence(:title)       { |n| "Article #{n}" }
  document.content                { |d| "This is a content for #{d.title}." }
  document.visible                false
  document.published_at           nil

  document.comments               5.times.map { Factory.create(:comment) } 
  document.tag                    3.times.map { Factory.create(:tag) } 
end
<commit_msg>fix Article factory<commit_after>
Factory.define :article, :class => Article do |document|
  document.sequence(:title)       { |n| "Article #{n}" }
  document.content                { |d| "This is a content for #{d.title}." }
  document.visible                false
  document.published_at           nil

  document.comments               5.times.map { Factory.create(:comment) } 
  document.tags                   3.times.map { Factory.create(:tag) } 
end

{'fraction_non_alphanumeric': 0.12334801762114538, 'fraction_numerical': 0.004405286343612335, 'mean_word_length': 2.0503355704697985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2211525', 'n_tokens_mistral': 263, 'n_tokens_neox': 248, 'n_words': 62}