<commit_before>require "factory_girl"

FactoryGirl.define do
  factory :product, class: Glysellin::Product do
  end

  factory :order, class: Glysellin::Order do
    customer { FactoryGirl.create(:customer) }
    billing_address { FactoryGirl.create(:address) }
    shipping_address { FactoryGirl.create(:address) }
  end

  factory :address, class: Glysellin::Address do
    sequence(:first_name) { |n| "First name #{ n }" }
    sequence(:last_name) { |n| "Last name #{ n }" }
    address "Address"
    zip "11223"
    city "City"
    country "Country"
  end

  factory :customer, class: Glysellin::Customer do
    first_name 'first_name'
    last_name 'last_name'
    sequence(:email) { |n| "customer-#{ n }@example.com" }
    password "<PASSWORD>"
    password_confirmation "<PASSWORD>"
  end

  factory :discount_code, class: Glysellin::DiscountCode do
    sequence(:name) { |n| "discount-#{ n }" }
    sequence(:code) { |n| "code-#{ n }" }
    value 5
    discount_type { FactoryGirl.build(:discount_type) }
    expires_on { 10.days.from_now }
  end

  factory :discount_type, class: Glysellin::DiscountType do
    sequence(:name) { |n| "Discount Type #{ n }" }
    sequence(:identifier) { |n| "identifier-#{ n }" }
  end
end
<commit_msg>Removed: password from factory<commit_after>require "factory_girl"

FactoryGirl.define do
  factory :product, class: Glysellin::Product do
  end

  factory :order, class: Glysellin::Order do
    customer { FactoryGirl.create(:customer) }
    billing_address { FactoryGirl.create(:address) }
    shipping_address { FactoryGirl.create(:address) }
  end

  factory :address, class: Glysellin::Address do
    sequence(:first_name) { |n| "First name #{ n }" }
    sequence(:last_name) { |n| "Last name #{ n }" }
    address "Address"
    zip "11223"
    city "City"
    country "Country"
  end

  factory :customer, class: Glysellin::Customer do
    first_name 'first_name'
    last_name 'last_name'
    sequence(:email) { |n| "<EMAIL>" }
  end

  factory :discount_code, class: Glysellin::DiscountCode do
    sequence(:name) { |n| "discount-#{ n }" }
    sequence(:code) { |n| "code-#{ n }" }
    value 5
    discount_type { FactoryGirl.build(:discount_type) }
    expires_on { 10.days.from_now }
  end

  factory :discount_type, class: Glysellin::DiscountType do
    sequence(:name) { |n| "Discount Type #{ n }" }
    sequence(:identifier) { |n| "identifier-#{ n }" }
  end
end

{'fraction_non_alphanumeric': 0.1393713813068652, 'fraction_numerical': 0.006617038875103391, 'mean_word_length': 3.7618110236220472, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1500787', 'n_tokens_mistral': 860, 'n_tokens_neox': 814, 'n_words': 199}