<commit_before>FactoryGirl.define do

  factory :mock_token, :class => Notifiable::DeviceToken do
    provider :mock
    sequence(:token) {|n| "<KEY> }
    app
  end
  
  factory :app, :class => Notifiable::App do
  end
  
  factory :notification, :class => Notifiable::Notification do
    app
  end
  
  
  factory :notification_status, :class => Notifiable::NotificationStatus do
    notification
    status 0
  end
  
  sequence(:email) {|n| "<EMAIL>" }
  
  factory :user do
    email
    
    factory :user_with_mock_token do
      after(:create) do |user, evaluator|
        FactoryGirl.create(:mock_token, :user_id => user.id)
      end
    end
  
    factory :user_with_invalid_mock_token do
      after(:create) do |user, evaluator|
        FactoryGirl.create(:mock_token, :user_id => user.id, :is_valid => false)
      end
    end  
  end
  
  
end<commit_msg>Remove invalid token from factory<commit_after>FactoryGirl.define do

  factory :mock_token, :class => Notifiable::DeviceToken do
    provider :mock
    sequence(:token) {|n| "<KEY> }
    app
  end
  
  factory :app, :class => Notifiable::App do
  end
  
  factory :notification, :class => Notifiable::Notification do
    app
  end
  
  
  factory :notification_status, :class => Notifiable::NotificationStatus do
    notification
    status 0
  end
  
  sequence(:email) {|n| "<EMAIL>" }
  
  factory :user do
    email
    
    factory :user_with_mock_token do
      after(:create) do |user, evaluator|
        FactoryGirl.create(:mock_token, :user_id => user.id)
      end
    end
  end
  
  
end
{'fraction_non_alphanumeric': 0.10325047801147227, 'fraction_numerical': 0.0012746972594008922, 'mean_word_length': 2.886138613861386, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '7117882', 'n_tokens_mistral': 511, 'n_tokens_neox': 501, 'n_words': 131}