<commit_before>FactoryGirl.define do
  factory :team_fight do
    transient do
      tournament {FactoryGirl::create(:tournament)}
    end
    shiro_team {create(:team, tournament: tournament)}
    aka_team {create(:team, tournament: tournament)}
    location {create(:location, tournament: tournament)}
    state :started

    after(:create) do |team_fight, evaluator|
      g = FactoryGirl::create(:group, tournament: team_fight.shiro_team.
        tournament)
      GroupFight.create(group: g, team_fight: team_fight)
      GroupMember.create(group: g, team: team_fight.aka_team)
      GroupMember.create(group: g, team: team_fight.shiro_team)
    end

    factory :team_fight_with_fights_and_points do
      transient do
        shiro_points 2
        aka_points 1<commit_msg>Generate players for team_fights factory<commit_after>FactoryGirl.define do
  factory :team_fight do
    transient do
      tournament {FactoryGirl::create(:tournament)}
    end
    shiro_team {create(:team_with_players, tournament: tournament)}
    aka_team {create(:team_with_players, tournament: tournament)}
    location {create(:location, tournament: tournament)}
    state :started

    after(:create) do |team_fight, evaluator|
      g = FactoryGirl::create(:group, tournament: team_fight.shiro_team.
        tournament)
      GroupFight.create(group: g, team_fight: team_fight)
      GroupMember.create(group: g, team: team_fight.aka_team)
      GroupMember.create(group: g, team: team_fight.shiro_team)
    end

    factory :team_fight_with_fights_and_points do
      transient do
        shiro_points 2
        aka_points 1
{'fraction_non_alphanumeric': 0.08803471791692498, 'fraction_numerical': 0.0024798512089274642, 'mean_word_length': 3.876132930513595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7461113', 'n_tokens_mistral': 514, 'n_tokens_neox': 479, 'n_words': 113}