<commit_before># Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do

  sequence :asset_tag do |n|
    "ABS_TAG#{n}"
  end

  trait :basic_asset_attributes do
    association :organization, :factory => :organization
    asset_tag
    purchase_date { 1.year.ago }
    manufacture_year "2000"
    in_service_date Date.new(2001,1,1)
    created_by_id 1
  end

  factory :sign, :class => :sign do
    basic_asset_attributes
    association :asset_type
    association :asset_subtype
    purchase_cost 2000.0
    association :sign_standard
    association :sheeting_type
    association :blank_type
    association :travel_direction_type, :factory => :direction_type
    association :facing_direction_type, :factory => :direction_type
    association :side_of_road_type, :factory => :side_type
    street_name "123 Main St"
  end

end<commit_msg>update factories for new validations<commit_after># Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do

  sequence :asset_tag do |n|
    "ABS_TAG#{n}"
  end

  trait :basic_asset_attributes do
    association :organization, :factory => :organization
    asset_tag
    purchase_date { 1.year.ago }
    manufacture_year "2000"
    in_service_date Date.new(2001,1,1)
    created_by_id 1
  end

  factory :sign, :class => :sign do
    basic_asset_attributes
    association :asset_type
    association :asset_subtype
    purchase_cost 2000.0
    association :sign_standard
    association :sheeting_type
    association :blank_type
    association :travel_direction_type, :factory => :direction_type
    association :facing_direction_type, :factory => :direction_type
    association :side_of_road_type, :factory => :side_type
    street_name "123 Main St"
    expected_useful_life 120
  end

end
{'fraction_non_alphanumeric': 0.07624309392265194, 'fraction_numerical': 0.023756906077348067, 'mean_word_length': 4.101408450704225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '7624300', 'n_tokens_mistral': 595, 'n_tokens_neox': 568, 'n_words': 139}