<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CourseMan.Domain.ValueObjects
{
	public class MeetingInfo
	{
        private List<MeetingTime> times;
		private Room room;


		public MeetingInfo()
		{
            times = new List<MeetingTime>();
		}
		
		public MeetingInfo(Room room, List<MeetingTime> times)
		{
			this.room = room;
            this.times = new List<MeetingTime>();
			this.times.AddRange(times);
		}


		void AddTime(MeetingTime time)
		{
			times.Add(time);
		}
		
		void Add(DayOfWeek dayOfWeek, int startTimeHours, int startTimeMinutes,
			int endTimeHours, int endTimeMinutes)
		{
			times.Add(new MeetingTime(dayOfWeek, startTimeHours,
				startTimeMinutes, endTimeHours, endTimeMinutes));
		}
		
		void Add(DayOfWeek dayOfWeek, TimeSpan startTime, TimeSpan endTime)
		{
			times.Add(new MeetingTime(dayOfWeek, startTime, endTime));
		}
		
        // Return whether this is currently meeting during the given date-time.
        public bool IsMeetingAt(DateTime dateTime)
        {
            foreach (MeetingTime meetingTime in times)
            {
                if (meetigTime.IsOccuringAt(dateTime))
                    return true;
            }
            return false;
        }
				
		// Return true if the given meeting time conflicts with this one (overlaps in time).
		public bool ConflictsWith(MeetingInfo other)<commit_msg>Typo was not a typo<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CourseMan.Domain.ValueObjects
{
	public class MeetingInfo
	{
        private List<MeetingTime> times;
		private Room room;


		public MeetingInfo()
		{
            times = new List<MeetingTime>();
		}
		
		public MeetingInfo(Room room, List<MeetingTime> times)
		{
			this.room = room;
            this.times = new List<MeetingTime>();
			this.times.AddRange(times);
		}


		void AddTime(MeetingTime time)
		{
			times.Add(time);
		}
		
		void Add(DayOfWeek dayOfWeek, int startTimeHours, int startTimeMinutes,
			int endTimeHours, int endTimeMinutes)
		{
			times.Add(new MeetingTime(dayOfWeek, startTimeHours,
				startTimeMinutes, endTimeHours, endTimeMinutes));
		}
		
		void Add(DayOfWeek dayOfWeek, TimeSpan startTime, TimeSpan endTime)
		{
			times.Add(new MeetingTime(dayOfWeek, startTime, endTime));
		}
		
        // Return whether this is currently meeting during the given date-time.
        public bool IsMeetingAt(DateTime dateTime)
        {
            foreach (MeetingTime meetigTime in times)
            {
                if (meetigTime.IsOccuringAt(dateTime))
                    return true;
            }
            return false;
        }
				
		// Return true if the given meeting time conflicts with this one (overlaps in time).
		public bool ConflictsWith(MeetingInfo other)
{'fraction_non_alphanumeric': 0.0829051044878383, 'fraction_numerical': 0.0, 'mean_word_length': 2.767741935483871, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '814476', 'n_tokens_mistral': 968, 'n_tokens_neox': 862, 'n_words': 227}