<commit_before>﻿using Nager.Date.Contract;
using Nager.Date.Model;
using System;
using System.Collections.Generic;

namespace Nager.Date.PublicHolidays
{
    public class IrelandProvider : IPublicHolidayProvider
    {
        public IEnumerable<PublicHoliday> Get(DateTime easterSunday, int year)
        {
            //Ireland
            //https://en.wikipedia.org/wiki/Public_holidays_in_the_Republic_of_Ireland

            var countryCode = CountryCode.IE;

            var mayDay = DateSystem.FindDay(year, 5, DayOfWeek.Monday, 0);
            var juneHoliday = DateSystem.FindDay(year, 5, DayOfWeek.Monday, 0);
            var augustHoliday = DateSystem.FindDay(year, 5, DayOfWeek.Monday, 0);
            var octoberHoliday = DateSystem.FindLastDay(year, 5, DayOfWeek.Monday);

            var items = new List<PublicHoliday>();
            items.Add(new PublicHoliday(1, 1, year, "<NAME>", "New Year's Day", countryCode));
            items.Add(new PublicHoliday(17, 3, year, "<NAME>", "Saint Patrick's Day", countryCode, 1903));
            items.Add(new PublicHoliday(easterSunday.AddDays(1), "Luan Cásca", "Easter Monday", countryCode));
            items.Add(new PublicHoliday(mayDay, 5, year, "Lá Bealtaine", "May Day", countryCode, 1994));
            items.Add(new PublicHoliday(juneHoliday, 6, year, "Lá Saoire i mí an Mheithimh", "June Holiday", countryCode, 1973));
            items.Add(new PublicHoliday(augustHoliday, 8, year, "Lá Saoire i mí Lúnasa", "August Holiday", countryCode));
            items.Add(new PublicHoliday(octoberHoliday, 10, year, "Lá Saoire i mí D<NAME>", "October Holiday", countryCode, 1977));
            items.Add(new PublicHoliday(25, 12, year, "<NAME>", "Christmas Day", countryCode));
            items.Add(new PublicHoliday(26, 12, year, "<NAME>", "St. Stephen's Day", countryCode));
<commit_msg>bugfix ireland<commit_after>﻿using Nager.Date.Contract;
using Nager.Date.Model;
using System;
using System.Collections.Generic;

namespace Nager.Date.PublicHolidays
{
    public class IrelandProvider : IPublicHolidayProvider
    {
        public IEnumerable<PublicHoliday> Get(DateTime easterSunday, int year)
        {
            //Ireland
            //https://en.wikipedia.org/wiki/Public_holidays_in_the_Republic_of_Ireland

            var countryCode = CountryCode.IE;

            var mayDay = DateSystem.FindDay(year, 5, DayOfWeek.Monday, 1);
            var juneHoliday = DateSystem.FindDay(year, 5, DayOfWeek.Monday, 1);
            var augustHoliday = DateSystem.FindDay(year, 5, DayOfWeek.Monday, 1);
            var octoberHoliday = DateSystem.FindLastDay(year, 5, DayOfWeek.Monday);

            var items = new List<PublicHoliday>();
            items.Add(new PublicHoliday(1, 1, year, "<NAME>", "New Year's Day", countryCode));
            items.Add(new PublicHoliday(17, 3, year, "<NAME>", "Saint Patrick's Day", countryCode, 1903));
            items.Add(new PublicHoliday(easterSunday.AddDays(1), "L<NAME>", "Easter Monday", countryCode));
            items.Add(new PublicHoliday(mayDay, 5, year, "Lá Bealtaine", "May Day", countryCode, 1994));
            items.Add(new PublicHoliday(juneHoliday, 6, year, "Lá Saoire i mí an Mheithimh", "June Holiday", countryCode, 1973));
            items.Add(new PublicHoliday(augustHoliday, 8, year, "Lá Saoire i mí Lúnasa", "August Holiday", countryCode));
            items.Add(new PublicHoliday(octoberHoliday, 10, year, "L<NAME> i mí D<NAME>", "October Holiday", countryCode, 1977));
            items.Add(new PublicHoliday(25, 12, year, "L<NAME>", "Christmas Day", countryCode));
            items.Add(new PublicHoliday(26, 12, year, "<NAME>", "St. Stephen's Day", countryCode));

{'fraction_non_alphanumeric': 0.12787862367921973, 'fraction_numerical': 0.022758060146301815, 'mean_word_length': 3.3537735849056602, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '3620962', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1130, 'n_words': 287}