<commit_before>FactoryGirl.define do
  factory :global_zone, :class => Spree::Zone do
    name 'GlobalZone'
    description { Faker::Lorem.sentence }
    zone_members do |proxy|
      zone = proxy.instance_eval{@instance}
      Spree::Country.find(:all).map{|c| Spree::ZoneMember.create({:zoneable => c, :zone => zone})}
    end
  end

  factory :zone, :class => Spree::Zone do
    name { Faker::Lorem.words }
    description { Faker::Lorem.sentence }
    #zone_members do |member|
    #  [ZoneMember.create(:zoneable => Factory(:country) )]
    #end
    zone_members { [Spree::ZoneMember.create(:zoneable => Factory(:country) )] }
  end
end<commit_msg>[core] Clean up Zone factory<commit_after>FactoryGirl.define do
  factory :global_zone, :class => Spree::Zone do
    name 'GlobalZone'
    description { Faker::Lorem.sentence }
    zone_members do |proxy|
      zone = proxy.instance_eval{@instance}
      Spree::Country.find(:all).map{|c| Spree::ZoneMember.create({:zoneable => c, :zone => zone})}
    end
  end

  factory :zone, :class => Spree::Zone do
    name { Faker::Lorem.words }
    description { Faker::Lorem.sentence }
    zone_members { [Spree::ZoneMember.create(:zoneable => Factory(:country) )] }
  end
end
{'fraction_non_alphanumeric': 0.14893617021276595, 'fraction_numerical': 0.0, 'mean_word_length': 3.9715447154471546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '4262719', 'n_tokens_mistral': 406, 'n_tokens_neox': 394, 'n_words': 83}