prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  name=Bankomat should not be added for amenity=atm
  It is like `name=ATM`
  
  The same goes for `name=Wpłatomat` (for ATM accepting cash)
  
  https://www.alltheplaces.xyz/map/#16.82/50.072257/20.036549
  
  ![screen](https://github.com/alltheplaces/alltheplaces/assets/899988/404afa65-095e-42d7-8c58-0c8d77335426)
  
  
  </issue>
  <code>
  [start of locations/spiders/santander_pl.py]
  1 import chompjs
  2 from scrapy import Spider
  3 
  4 from locations.categories import Categories, apply_category, apply_yes_no
  5 from locations.dict_parser import DictParser
  6 from locations.hours import DAYS, OpeningHours
  7 from locations.items import Feature
  8 
  9 
  10 class SantanderPLSpider(Spider):
  11     name = "santander_pl"
  12     item_attributes = {"brand": "Santander", "brand_wikidata": "Q806653"}
  13     # The "20000000000000" needs to be a valid date time, but it seems it's just there to stop the page being cached by
  14     # the CDN. We always get the same data.
  15     start_urls = ["https://www.santander.pl/_js_places/time20000000000000/places.js"]
  16 
  17     def parse(self, response, **kwargs):
  18         data = chompjs.parse_js_object(response.text)
  19         for ref, branch in data["atm"].items():
  20             yield self.parse_item(ref, branch, Categories.ATM)
  21         for ref, branch in data["branch"].items():
  22             yield self.parse_item(ref, branch, Categories.BANK)
  23         for ref, branch in data["cashin"].items():
  24             item = self.parse_item(ref, branch, Categories.ATM)
  25             apply_yes_no("cash_in", item, True)
  26             yield item
  27 
  28     @staticmethod
  29     def parse_item(ref: str, data: dict, category) -> Feature:
  30         data["basicParameters"]["street_address"] = data["basicParameters"].pop("street")
  31         item = DictParser.parse(data["basicParameters"])
  32         item["ref"] = ref
  33 
  34         if data["open_24h"]:
  35             item["opening_hours"] = "24/7"
  36         else:
  37             item["opening_hours"] = OpeningHours()
  38             for day, hours in data["basicParameters"]["opening_hours"].items():
  39                 start_time, end_time = hours.split("-")
  40                 item["opening_hours"].add_range(DAYS[int(day) - 2], start_time.strip(), end_time.strip())
  41 
  42         apply_category(category, item)
  43 
  44         return item
  45
  [end of locations/spiders/santander_pl.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/locations/spiders/santander_pl.py b/locations/spiders/santander_pl.py
  --- a/locations/spiders/santander_pl.py
  +++ b/locations/spiders/santander_pl.py
  @@ -39,6 +39,9 @@
                   start_time, end_time = hours.split("-")
                   item["opening_hours"].add_range(DAYS[int(day) - 2], start_time.strip(), end_time.strip())
   
  +        if category == Categories.ATM:
  +            item["name"] = None
  +
           apply_category(category, item)
   
           return item
  
verification_info: {"golden_diff": "diff --git a/locations/spiders/santander_pl.py b/locations/spiders/santander_pl.py\n--- a/locations/spiders/santander_pl.py\n+++ b/locations/spiders/santander_pl.py\n@@ -39,6 +39,9 @@\n                 start_time, end_time = hours.split(\"-\")\n                 item[\"opening_hours\"].add_range(DAYS[int(day) - 2], start_time.strip(), end_time.strip())\n \n+        if category == Categories.ATM:\n+            item[\"name\"] = None\n+\n         apply_category(category, item)\n \n         return item\n", "issue": "name=Bankomat should not be added for amenity=atm\nIt is like `name=ATM`\r\n\r\nThe same goes for `name=Wp\u0142atomat` (for ATM accepting cash)\r\n\r\nhttps://www.alltheplaces.xyz/map/#16.82/50.072257/20.036549\r\n\r\n![screen](https://github.com/alltheplaces/alltheplaces/assets/899988/404afa65-095e-42d7-8c58-0c8d77335426)\r\n\n", "before_files": [{"content": "import chompjs\nfrom scrapy import Spider\n\nfrom locations.categories import Categories, apply_category, apply_yes_no\nfrom locations.dict_parser import DictParser\nfrom locations.hours import DAYS, OpeningHours\nfrom locations.items import Feature\n\n\nclass SantanderPLSpider(Spider):\n    name = \"santander_pl\"\n    item_attributes = {\"brand\": \"Santander\", \"brand_wikidata\": \"Q806653\"}\n    # The \"20000000000000\" needs to be a valid date time, but it seems it's just there to stop the page being cached by\n    # the CDN. We always get the same data.\n    start_urls = [\"https://www.santander.pl/_js_places/time20000000000000/places.js\"]\n\n    def parse(self, response, **kwargs):\n        data = chompjs.parse_js_object(response.text)\n        for ref, branch in data[\"atm\"].items():\n            yield self.parse_item(ref, branch, Categories.ATM)\n        for ref, branch in data[\"branch\"].items():\n            yield self.parse_item(ref, branch, Categories.BANK)\n        for ref, branch in data[\"cashin\"].items():\n            item = self.parse_item(ref, branch, Categories.ATM)\n            apply_yes_no(\"cash_in\", item, True)\n            yield item\n\n    @staticmethod\n    def parse_item(ref: str, data: dict, category) -> Feature:\n        data[\"basicParameters\"][\"street_address\"] = data[\"basicParameters\"].pop(\"street\")\n        item = DictParser.parse(data[\"basicParameters\"])\n        item[\"ref\"] = ref\n\n        if data[\"open_24h\"]:\n            item[\"opening_hours\"] = \"24/7\"\n        else:\n            item[\"opening_hours\"] = OpeningHours()\n            for day, hours in data[\"basicParameters\"][\"opening_hours\"].items():\n                start_time, end_time = hours.split(\"-\")\n                item[\"opening_hours\"].add_range(DAYS[int(day) - 2], start_time.strip(), end_time.strip())\n\n        apply_category(category, item)\n\n        return item\n", "path": "locations/spiders/santander_pl.py"}]}