<commit_before>FactoryGirl.define do
  factory :search_criteria do
    
    trait :round_trip_one_adult do
      ignore do
        origin 'BCN'
        destination 'LTN'
        outbound_date Date.new(2014,1,18) 
        inbound_date Date.new(2014,4,4) 
        adults 1
        childs 0
        infants 0
      end

      initialize_with { SearchCriteria.new(origin, destination, outbound_date, inbound_date, adults, childs, infants) }
    end
  
  end
end<commit_msg>added factory for OneWay SearchCriteria<commit_after>FactoryGirl.define do
  factory :search_criteria do
    
    trait :round_trip_one_adult do
      ignore do
        origin 'BCN'
        destination 'LTN'
        outbound_date Date.new(2014,1,18) 
        inbound_date Date.new(2014,4,4) 
        adults 1
        childs 0
        infants 0
      end

      initialize_with { SearchCriteria.new(origin, destination, outbound_date, inbound_date, adults, childs, infants) }
    end

    trait :one_way_all_passenger_types do
      ignore do
        origin 'BCN'
        destination 'LTN'
        outbound_date Date.new(2014,1,18) 
        inbound_date nil
        adults 1
        childs 1
        infants 1
      end

      initialize_with { SearchCriteria.new(origin, destination, outbound_date, inbound_date, adults, childs, infants) }
    end
  
  end
end
{'fraction_non_alphanumeric': 0.062452972159518436, 'fraction_numerical': 0.03160270880361174, 'mean_word_length': 2.3333333333333335, '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': '4693754', 'n_tokens_mistral': 454, 'n_tokens_neox': 413, 'n_words': 104}