prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Wrong workday info for country HR
  Today (Oct. 8, 2020) my alarmclock automation did not go off, because my workday sensor gave the wrong info (no workday). This day used to be a holiday in Croatia, but is not anymore.
  
  binary_sensor:
    - platform: workday
      country: HR
  
  ![image](https://user-images.githubusercontent.com/61622258/95419607-4082d000-093a-11eb-904c-77a2639b1719.png)
  
  
  </issue>
  <code>
  [start of holidays/countries/croatia.py]
  1 # -*- coding: utf-8 -*-
  2 
  3 #  python-holidays
  4 #  ---------------
  5 #  A fast, efficient Python library for generating country, province and state
  6 #  specific sets of holidays on the fly. It aims to make determining whether a
  7 #  specific date is a holiday as fast and flexible as possible.
  8 #
  9 #  Author:  ryanss <ryanssdev@icloud.com> (c) 2014-2017
  10 #           dr-prodigy <maurizio.montel@gmail.com> (c) 2017-2020
  11 #  Website: https://github.com/dr-prodigy/python-holidays
  12 #  License: MIT (see LICENSE file)
  13 
  14 from datetime import date
  15 
  16 from dateutil.easter import easter
  17 from dateutil.relativedelta import relativedelta as rd
  18 
  19 from holidays.constants import JAN, MAY, JUN, AUG, OCT, \
  20     NOV, DEC
  21 from holidays.holiday_base import HolidayBase
  22 
  23 
  24 class Croatia(HolidayBase):
  25 
  26     # https://en.wikipedia.org/wiki/Public_holidays_in_Croatia
  27 
  28     def __init__(self, **kwargs):
  29         self.country = "HR"
  30         HolidayBase.__init__(self, **kwargs)
  31 
  32     def _populate(self, year):
  33         # New years
  34         self[date(year, JAN, 1)] = "Nova Godina"
  35         # Epiphany
  36         self[date(year, JAN, 6)] = "Sveta tri kralja"
  37         easter_date = easter(year)
  38 
  39         # Easter
  40         self[easter_date] = "Uskrs"
  41         # Easter Monday
  42         self[easter_date + rd(days=1)] = "Uskršnji ponedjeljak"
  43 
  44         # Corpus Christi
  45         self[easter_date + rd(days=60)] = "Tijelovo"
  46 
  47         # International Workers' Day
  48         self[date(year, MAY, 1)] = "Međunarodni praznik rada"
  49 
  50         if year >= 2020:
  51             # Statehood day
  52             self[date(year, MAY, 30)] = "Dan državnosti"
  53 
  54         # Anti-fascist struggle day
  55         self[date(year, JUN, 22)] = "Dan antifašističke borbe"
  56 
  57         if year < 2020:
  58             # Statehood day
  59             self[date(year, JUN, 25)] = "Dan državnosti"
  60 
  61         # Victory and Homeland Thanksgiving Day
  62         self[date(year, AUG, 5)] = "Dan pobjede i domovinske zahvalnosti"
  63 
  64         # Assumption of Mary
  65         self[date(year, AUG, 15)] = "Velika Gospa"
  66 
  67         if year < 2020:
  68             # Independence Day
  69             self[date(year, OCT, 8)] = "Dan neovisnosti"
  70 
  71         # All Saints' Day
  72         self[date(year, NOV, 1)] = "Dan svih svetih"
  73 
  74         if year >= 2020:
  75             # Memorial day
  76             self[date(year, NOV, 18)] =\
  77                 "Dan sjećanja na žrtve Domovinskog rata"
  78 
  79         # Christmas day
  80         self[date(year, DEC, 25)] = "Božić"
  81 
  82         # St. Stephen's day
  83         self[date(year, DEC, 26)] = "Sveti Stjepan"
  84 
  85 
  86 class HR(Croatia):
  87     pass
  88 
  89 
  90 class HRV(Croatia):
  91     pass
  92
  [end of holidays/countries/croatia.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/holidays/countries/croatia.py b/holidays/countries/croatia.py
  --- a/holidays/countries/croatia.py
  +++ b/holidays/countries/croatia.py
  @@ -11,18 +11,18 @@
   #  Website: https://github.com/dr-prodigy/python-holidays
   #  License: MIT (see LICENSE file)
   
  -from datetime import date
  +from datetime import date, timedelta
   
   from dateutil.easter import easter
  -from dateutil.relativedelta import relativedelta as rd
   
  -from holidays.constants import JAN, MAY, JUN, AUG, OCT, \
  -    NOV, DEC
  +from holidays.constants import JAN, MAY, JUN, AUG, OCT, NOV, DEC
   from holidays.holiday_base import HolidayBase
   
   
   class Croatia(HolidayBase):
   
  +    # Updated with act 022-03 / 19-01 / 219 of 14 November 2019
  +    # https://narodne-novine.nn.hr/clanci/sluzbeni/2019_11_110_2212.html
       # https://en.wikipedia.org/wiki/Public_holidays_in_Croatia
   
       def __init__(self, **kwargs):
  @@ -32,6 +32,7 @@
       def _populate(self, year):
           # New years
           self[date(year, JAN, 1)] = "Nova Godina"
  +
           # Epiphany
           self[date(year, JAN, 6)] = "Sveta tri kralja"
           easter_date = easter(year)
  @@ -39,23 +40,23 @@
           # Easter
           self[easter_date] = "Uskrs"
           # Easter Monday
  -        self[easter_date + rd(days=1)] = "Uskršnji ponedjeljak"
  +        self[easter_date + timedelta(days=1)] = "Uskrsni ponedjeljak"
   
           # Corpus Christi
  -        self[easter_date + rd(days=60)] = "Tijelovo"
  +        self[easter_date + timedelta(days=60)] = "Tijelovo"
   
           # International Workers' Day
           self[date(year, MAY, 1)] = "Međunarodni praznik rada"
   
  +        # Statehood day (new)
           if year >= 2020:
  -            # Statehood day
               self[date(year, MAY, 30)] = "Dan državnosti"
   
           # Anti-fascist struggle day
           self[date(year, JUN, 22)] = "Dan antifašističke borbe"
   
  +        # Statehood day (old)
           if year < 2020:
  -            # Statehood day
               self[date(year, JUN, 25)] = "Dan državnosti"
   
           # Victory and Homeland Thanksgiving Day
  @@ -64,17 +65,16 @@
           # Assumption of Mary
           self[date(year, AUG, 15)] = "Velika Gospa"
   
  +        # Independence Day (old)
           if year < 2020:
  -            # Independence Day
               self[date(year, OCT, 8)] = "Dan neovisnosti"
   
           # All Saints' Day
  -        self[date(year, NOV, 1)] = "Dan svih svetih"
  +        self[date(year, NOV, 1)] = "Svi sveti"
   
           if year >= 2020:
               # Memorial day
  -            self[date(year, NOV, 18)] =\
  -                "Dan sjećanja na žrtve Domovinskog rata"
  +            self[date(year, NOV, 18)] = "Dan sjećanja"
   
           # Christmas day
           self[date(year, DEC, 25)] = "Božić"
  
verification_info: {"golden_diff": "diff --git a/holidays/countries/croatia.py b/holidays/countries/croatia.py\n--- a/holidays/countries/croatia.py\n+++ b/holidays/countries/croatia.py\n@@ -11,18 +11,18 @@\n #  Website: https://github.com/dr-prodigy/python-holidays\n #  License: MIT (see LICENSE file)\n \n-from datetime import date\n+from datetime import date, timedelta\n \n from dateutil.easter import easter\n-from dateutil.relativedelta import relativedelta as rd\n \n-from holidays.constants import JAN, MAY, JUN, AUG, OCT, \\\n-    NOV, DEC\n+from holidays.constants import JAN, MAY, JUN, AUG, OCT, NOV, DEC\n from holidays.holiday_base import HolidayBase\n \n \n class Croatia(HolidayBase):\n \n+    # Updated with act 022-03 / 19-01 / 219 of 14 November 2019\n+    # https://narodne-novine.nn.hr/clanci/sluzbeni/2019_11_110_2212.html\n     # https://en.wikipedia.org/wiki/Public_holidays_in_Croatia\n \n     def __init__(self, **kwargs):\n@@ -32,6 +32,7 @@\n     def _populate(self, year):\n         # New years\n         self[date(year, JAN, 1)] = \"Nova Godina\"\n+\n         # Epiphany\n         self[date(year, JAN, 6)] = \"Sveta tri kralja\"\n         easter_date = easter(year)\n@@ -39,23 +40,23 @@\n         # Easter\n         self[easter_date] = \"Uskrs\"\n         # Easter Monday\n-        self[easter_date + rd(days=1)] = \"Uskr\u0161nji ponedjeljak\"\n+        self[easter_date + timedelta(days=1)] = \"Uskrsni ponedjeljak\"\n \n         # Corpus Christi\n-        self[easter_date + rd(days=60)] = \"Tijelovo\"\n+        self[easter_date + timedelta(days=60)] = \"Tijelovo\"\n \n         # International Workers' Day\n         self[date(year, MAY, 1)] = \"Me\u0111unarodni praznik rada\"\n \n+        # Statehood day (new)\n         if year >= 2020:\n-            # Statehood day\n             self[date(year, MAY, 30)] = \"Dan dr\u017eavnosti\"\n \n         # Anti-fascist struggle day\n         self[date(year, JUN, 22)] = \"Dan antifa\u0161isti\u010dke borbe\"\n \n+        # Statehood day (old)\n         if year < 2020:\n-            # Statehood day\n             self[date(year, JUN, 25)] = \"Dan dr\u017eavnosti\"\n \n         # Victory and Homeland Thanksgiving Day\n@@ -64,17 +65,16 @@\n         # Assumption of Mary\n         self[date(year, AUG, 15)] = \"Velika Gospa\"\n \n+        # Independence Day (old)\n         if year < 2020:\n-            # Independence Day\n             self[date(year, OCT, 8)] = \"Dan neovisnosti\"\n \n         # All Saints' Day\n-        self[date(year, NOV, 1)] = \"Dan svih svetih\"\n+        self[date(year, NOV, 1)] = \"Svi sveti\"\n \n         if year >= 2020:\n             # Memorial day\n-            self[date(year, NOV, 18)] =\\\n-                \"Dan sje\u0107anja na \u017ertve Domovinskog rata\"\n+            self[date(year, NOV, 18)] = \"Dan sje\u0107anja\"\n \n         # Christmas day\n         self[date(year, DEC, 25)] = \"Bo\u017ei\u0107\"\n", "issue": "Wrong workday info for country HR\nToday (Oct. 8, 2020) my alarmclock automation did not go off, because my workday sensor gave the wrong info (no workday). This day used to be a holiday in Croatia, but is not anymore.\r\n\r\nbinary_sensor:\r\n  - platform: workday\r\n    country: HR\r\n\r\n![image](https://user-images.githubusercontent.com/61622258/95419607-4082d000-093a-11eb-904c-77a2639b1719.png)\r\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\n#  python-holidays\n#  ---------------\n#  A fast, efficient Python library for generating country, province and state\n#  specific sets of holidays on the fly. It aims to make determining whether a\n#  specific date is a holiday as fast and flexible as possible.\n#\n#  Author:  ryanss <ryanssdev@icloud.com> (c) 2014-2017\n#           dr-prodigy <maurizio.montel@gmail.com> (c) 2017-2020\n#  Website: https://github.com/dr-prodigy/python-holidays\n#  License: MIT (see LICENSE file)\n\nfrom datetime import date\n\nfrom dateutil.easter import easter\nfrom dateutil.relativedelta import relativedelta as rd\n\nfrom holidays.constants import JAN, MAY, JUN, AUG, OCT, \\\n    NOV, DEC\nfrom holidays.holiday_base import HolidayBase\n\n\nclass Croatia(HolidayBase):\n\n    # https://en.wikipedia.org/wiki/Public_holidays_in_Croatia\n\n    def __init__(self, **kwargs):\n        self.country = \"HR\"\n        HolidayBase.__init__(self, **kwargs)\n\n    def _populate(self, year):\n        # New years\n        self[date(year, JAN, 1)] = \"Nova Godina\"\n        # Epiphany\n        self[date(year, JAN, 6)] = \"Sveta tri kralja\"\n        easter_date = easter(year)\n\n        # Easter\n        self[easter_date] = \"Uskrs\"\n        # Easter Monday\n        self[easter_date + rd(days=1)] = \"Uskr\u0161nji ponedjeljak\"\n\n        # Corpus Christi\n        self[easter_date + rd(days=60)] = \"Tijelovo\"\n\n        # International Workers' Day\n        self[date(year, MAY, 1)] = \"Me\u0111unarodni praznik rada\"\n\n        if year >= 2020:\n            # Statehood day\n            self[date(year, MAY, 30)] = \"Dan dr\u017eavnosti\"\n\n        # Anti-fascist struggle day\n        self[date(year, JUN, 22)] = \"Dan antifa\u0161isti\u010dke borbe\"\n\n        if year < 2020:\n            # Statehood day\n            self[date(year, JUN, 25)] = \"Dan dr\u017eavnosti\"\n\n        # Victory and Homeland Thanksgiving Day\n        self[date(year, AUG, 5)] = \"Dan pobjede i domovinske zahvalnosti\"\n\n        # Assumption of Mary\n        self[date(year, AUG, 15)] = \"Velika Gospa\"\n\n        if year < 2020:\n            # Independence Day\n            self[date(year, OCT, 8)] = \"Dan neovisnosti\"\n\n        # All Saints' Day\n        self[date(year, NOV, 1)] = \"Dan svih svetih\"\n\n        if year >= 2020:\n            # Memorial day\n            self[date(year, NOV, 18)] =\\\n                \"Dan sje\u0107anja na \u017ertve Domovinskog rata\"\n\n        # Christmas day\n        self[date(year, DEC, 25)] = \"Bo\u017ei\u0107\"\n\n        # St. Stephen's day\n        self[date(year, DEC, 26)] = \"Sveti Stjepan\"\n\n\nclass HR(Croatia):\n    pass\n\n\nclass HRV(Croatia):\n    pass\n", "path": "holidays/countries/croatia.py"}]}