<commit_before>
class DummyModel
	attr_accessor :flight_date, :origin, :destination, :adults , :children
	def initialize *args
		if args[0].class == Hash
			args[0].each{|k, v|
				send("#{k}=".to_sym, v)
			}
		end
	end

	def adults
		@adults ||= 1
	end

	def children
		@children ||= 0
	end

	def infants
		@infants ||= 0
	end

	def flight_date=(str)
		@flight_date = str.to_date
	end
end

module DummySupport
	def dummy_model
		@dummy_model ||= DummyModel.new(:flight_date => (Time.now+2.day).to_date, :origin => 'CGK', :destination => 'DPS')
	end
	def flight_collection
		@flight_collection ||= Traveloka::FlightsCollection.new(dummy_model, RESULT_DUMMY)
	end
	def flight_set
		@flight_set ||= Traveloka::FlightSet.new(flight_collection, RESULT_DUMMY['data'][rand(RESULT_DUMMY['data'].size - 1)])
	end 
	def flight
		@flight ||= Traveloka::Flight.new(flight_set)
	end<commit_msg>daily dev<commit_after>
class DummyModel
	attr_accessor :flight_date, :origin, :destination, :adults , :children
	def initialize *args
		if args[0].class == Hash
			args[0].each{|k, v|
				send("#{k}=".to_sym, v)
			}
		end
	end

	def adults
		@adults ||= 1
	end

	def children
		@children ||= 0
	end

	def infants
		@infants ||= 0
	end

	def flight_date=(str)
		@flight_date = str.to_date
	end
end

module DummySupport
	def dummy_model
		@dummy_model ||= DummyModel.new(:flight_date => (Time.now+2.day).to_date, :origin => 'CGK', :destination => 'DPS')
	end
	def flight_collection
		@flight_collection ||= Traveloka::FlightsCollection.new(dummy_model, RESULT_DUMMY['data'])
	end
	def flight_set
		@flight_set ||= Traveloka::FlightSet.new(flight_collection, RESULT_DUMMY['data'][rand(RESULT_DUMMY['data'].size - 1)])
	end 
	def flight
		@flight ||= Traveloka::Flight.new(flight_set)
	end
{'fraction_non_alphanumeric': 0.14350282485875707, 'fraction_numerical': 0.007909604519774011, 'mean_word_length': 4.712903225806452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3355463', 'n_tokens_mistral': 749, 'n_tokens_neox': 671, 'n_words': 144}