<commit_before><commit_msg>move factories to helper<commit_after>module ModelHelpers

  def adult_2units_2scout_3subunits
    @adult = FactoryGirl.create(:adult)
    @unit1 = FactoryGirl.create(:unit)
    @unit2 = FactoryGirl.create(:unit, unit_type: 'Boy Scouts', unit_number: '603')
    @adult.units << @unit1
    @adult.units << @unit2
    @scout1 = FactoryGirl.create(:scout)
    @scout2 = FactoryGirl.create(:scout)
    @adult.scouts << @scout1
    @adult.scouts << @scout2
    @scout1.units << @unit1
    @scout2.units << @unit2
    @sub_unit1 = FactoryGirl.create(:cub_scout_sub_unit, unit: @unit1)
    @sub_unit1.scouts << @scout1
    @sub_unit2 = FactoryGirl.create(:boy_scout_sub_unit, unit: @unit2)
    @sub_unit2.scouts << @scout2
    @sub_unit3 = FactoryGirl.create(:cub_scout_sub_unit, unit: @unit1)
  end
end
{'fraction_non_alphanumeric': 0.13487241798298907, 'fraction_numerical': 0.03402187120291616, 'mean_word_length': 4.38562091503268, 'pattern_counts': {'":': 0, '<': 19, '<?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': '1051994', 'n_tokens_mistral': 329, 'n_tokens_neox': 310, 'n_words': 52}