<commit_before>FactoryGirl.define do

  factory :user do |u|
    u.sequence(:name) {|n| "User #{n}"}
    u.sequence(:initials) {|n| "U#{n}"}
    u.sequence(:email) {|n| "<EMAIL>"}
    u.password 'password'
    u.password_confirmation 'password'
    u.after(:build) {|user| user.confirm!}
  end

  factory :unconfirmed_user, :class => User do |u|
    u.sequence(:name) {|n| "Unconfirmed User #{n}"}
    u.sequence(:initials) {|n| "U#{n}"}
    u.sequence(:email) {|n| "<EMAIL>"}
  end

  factory :project do |p|
    p.name 'Test Project'
  end

  factory :story do |s|
    s.title 'Test story'
    s.association :requested_by, :factory => :user
    s.association :project
  end
<commit_msg>Fix deprecation in spec factories<commit_after>FactoryGirl.define do

  factory :user do |u|
    u.sequence(:name) {|n| "User #{n}"}
    u.sequence(:initials) {|n| "U#{n}"}
    u.sequence(:email) {|n| "<EMAIL>"}
    u.password 'password'
    u.password_confirmation 'password'
    u.after(:build) {|user| user.confirm}
  end

  factory :unconfirmed_user, :class => User do |u|
    u.sequence(:name) {|n| "Unconfirmed User #{n}"}
    u.sequence(:initials) {|n| "U#{n}"}
    u.sequence(:email) {|n| "<EMAIL>"}
  end

  factory :project do |p|
    p.name 'Test Project'
  end

  factory :story do |s|
    s.title 'Test story'
    s.association :requested_by, :factory => :user
    s.association :project
  end

{'fraction_non_alphanumeric': 0.1813620071684588, 'fraction_numerical': 0.0, 'mean_word_length': 3.4887459807073955, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3278553', 'n_tokens_mistral': 539, 'n_tokens_neox': 525, 'n_words': 132}