<commit_before>class Course < ActiveRecord::Base

	validates :courseID, length: { is: 8 }
	validates :courseID, :uniqueness => { :scope => :startDate }

	validates :courseID, :startDate, :title, :instructor, :description,	:intesity, :additional, \
	 :duration, :startTime, :endTime, :dayOfWeek, :earlybirdPrice, :memberPrice, :nonmemberPrice, \
	  :size, :presence => true

	 validates :startDate, :presence => { :message => "Date must be in DD-MM-YYYY"}
end<commit_msg>Added validation for startTime and EndTime conflicts for course<commit_after>class Course < ActiveRecord::Base

	validates :courseID, length: { is: 8 }
	validates :courseID, :uniqueness => { :scope => :startDate }

	validates :courseID, :startDate, :title, :instructor, :description,	:intesity, :additional, \
	 :duration, :startTime, :endTime, :dayOfWeek, :earlybirdPrice, :memberPrice, :nonmemberPrice, \
	  :size, :presence => true

	validates :startDate, :presence => { :message => "Date must be in DD-MM-YYYY"}

	validate :startTime_endTime_conflict


	def startTime_endTime_conflict
		if :startTime >= :endTime
			errors.add(:course, "End Time Ahead of Start Time")
		end
	end

end
{'fraction_non_alphanumeric': 0.1348314606741573, 'fraction_numerical': 0.001728608470181504, 'mean_word_length': 5.433333333333334, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '4605627', 'n_tokens_mistral': 403, 'n_tokens_neox': 374, 'n_words': 105}