prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Spider wafflehouse is broken
  During the global build at 2021-06-02-14-42-40, spider **wafflehouse** failed with **0 features** and **0 errors**.
  
  Here's [the log](https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/logs/wafflehouse.txt) and [the output](https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/output/wafflehouse.geojson) ([on a map](https://data.alltheplaces.xyz/map.html?show=https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/output/wafflehouse.geojson))
  
  </issue>
  <code>
  [start of locations/spiders/wafflehouse.py]
  1 # -*- coding: utf-8 -*-
  2 import json
  3 
  4 import scrapy
  5 
  6 from locations.hours import OpeningHours
  7 from locations.items import GeojsonPointItem
  8 
  9 
  10 class WaffleHouseSpider(scrapy.Spider):
  11     name = "wafflehouse"
  12     item_attributes = {"brand": "Waffle House", "brand_wikidata": "Q1701206"}
  13     allowed_domains = ["wafflehouse.com"]
  14     start_urls = [
  15         "https://wafflehouse.locally.com/stores/conversion_data?has_data=true&company_id=117995&store_mode=&style=&color=&upc=&category=&inline=1&show_links_in_list=&parent_domain=&map_center_lat=39.8&map_center_lng=-98.6&map_distance_diag=3000&sort_by=proximity&no_variants=0&only_retailer_id=&dealers_company_id=&only_store_id=false&uses_alt_coords=false&zoom_level=4&lang=en-us&forced_coords=1"
  16     ]
  17 
  18     def parse(self, response):
  19         for row in response.json()["markers"]:
  20             url = "https://locations.wafflehouse.com/" + row["slug"]
  21             yield scrapy.Request(url, callback=self.parse_store)
  22 
  23     def parse_store(self, response):
  24         data = json.loads(
  25             response.xpath('//head/script[@type="application/ld+json"]/text()').get()
  26         )
  27 
  28         hours = OpeningHours()
  29         specs = data.get("openingHoursSpecification", [])
  30         if any({"validFrom", "validThrough"} <= spec.keys() for spec in specs):
  31             # Giving opening hours for specific dates, abandon the whole proposal
  32             pass
  33         else:
  34             for spec in specs:
  35                 for day in spec["dayOfWeek"]:
  36                     hours.add_range(
  37                         day[:2].capitalize(), spec["opens"], spec["closes"], "%I%p"
  38                     )
  39 
  40         properties = {
  41             "ref": data["@id"],
  42             "lat": data["geo"]["latitude"],
  43             "lon": data["geo"]["longitude"],
  44             "website": response.url,
  45             "name": data["name"],
  46             "phone": data["telephone"],
  47             "addr_full": data["address"]["streetAddress"],
  48             "city": data["address"]["addressLocality"],
  49             "state": data["address"]["addressRegion"],
  50             "postcode": data["address"]["postalCode"],
  51             "opening_hours": hours.as_opening_hours(),
  52         }
  53         yield GeojsonPointItem(**properties)
  54
  [end of locations/spiders/wafflehouse.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/wafflehouse.py b/locations/spiders/wafflehouse.py
  --- a/locations/spiders/wafflehouse.py
  +++ b/locations/spiders/wafflehouse.py
  @@ -44,10 +44,11 @@
               "website": response.url,
               "name": data["name"],
               "phone": data["telephone"],
  -            "addr_full": data["address"]["streetAddress"],
  +            "street_address": data["address"]["streetAddress"],
               "city": data["address"]["addressLocality"],
               "state": data["address"]["addressRegion"],
               "postcode": data["address"]["postalCode"],
               "opening_hours": hours.as_opening_hours(),
           }
  +
           yield GeojsonPointItem(**properties)
  
verification_info: {"golden_diff": "diff --git a/locations/spiders/wafflehouse.py b/locations/spiders/wafflehouse.py\n--- a/locations/spiders/wafflehouse.py\n+++ b/locations/spiders/wafflehouse.py\n@@ -44,10 +44,11 @@\n             \"website\": response.url,\n             \"name\": data[\"name\"],\n             \"phone\": data[\"telephone\"],\n-            \"addr_full\": data[\"address\"][\"streetAddress\"],\n+            \"street_address\": data[\"address\"][\"streetAddress\"],\n             \"city\": data[\"address\"][\"addressLocality\"],\n             \"state\": data[\"address\"][\"addressRegion\"],\n             \"postcode\": data[\"address\"][\"postalCode\"],\n             \"opening_hours\": hours.as_opening_hours(),\n         }\n+\n         yield GeojsonPointItem(**properties)\n", "issue": "Spider wafflehouse is broken\nDuring the global build at 2021-06-02-14-42-40, spider **wafflehouse** failed with **0 features** and **0 errors**.\n\nHere's [the log](https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/logs/wafflehouse.txt) and [the output](https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/output/wafflehouse.geojson) ([on a map](https://data.alltheplaces.xyz/map.html?show=https://data.alltheplaces.xyz/runs/2021-06-02-14-42-40/output/wafflehouse.geojson))\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nimport json\n\nimport scrapy\n\nfrom locations.hours import OpeningHours\nfrom locations.items import GeojsonPointItem\n\n\nclass WaffleHouseSpider(scrapy.Spider):\n    name = \"wafflehouse\"\n    item_attributes = {\"brand\": \"Waffle House\", \"brand_wikidata\": \"Q1701206\"}\n    allowed_domains = [\"wafflehouse.com\"]\n    start_urls = [\n        \"https://wafflehouse.locally.com/stores/conversion_data?has_data=true&company_id=117995&store_mode=&style=&color=&upc=&category=&inline=1&show_links_in_list=&parent_domain=&map_center_lat=39.8&map_center_lng=-98.6&map_distance_diag=3000&sort_by=proximity&no_variants=0&only_retailer_id=&dealers_company_id=&only_store_id=false&uses_alt_coords=false&zoom_level=4&lang=en-us&forced_coords=1\"\n    ]\n\n    def parse(self, response):\n        for row in response.json()[\"markers\"]:\n            url = \"https://locations.wafflehouse.com/\" + row[\"slug\"]\n            yield scrapy.Request(url, callback=self.parse_store)\n\n    def parse_store(self, response):\n        data = json.loads(\n            response.xpath('//head/script[@type=\"application/ld+json\"]/text()').get()\n        )\n\n        hours = OpeningHours()\n        specs = data.get(\"openingHoursSpecification\", [])\n        if any({\"validFrom\", \"validThrough\"} <= spec.keys() for spec in specs):\n            # Giving opening hours for specific dates, abandon the whole proposal\n            pass\n        else:\n            for spec in specs:\n                for day in spec[\"dayOfWeek\"]:\n                    hours.add_range(\n                        day[:2].capitalize(), spec[\"opens\"], spec[\"closes\"], \"%I%p\"\n                    )\n\n        properties = {\n            \"ref\": data[\"@id\"],\n            \"lat\": data[\"geo\"][\"latitude\"],\n            \"lon\": data[\"geo\"][\"longitude\"],\n            \"website\": response.url,\n            \"name\": data[\"name\"],\n            \"phone\": data[\"telephone\"],\n            \"addr_full\": data[\"address\"][\"streetAddress\"],\n            \"city\": data[\"address\"][\"addressLocality\"],\n            \"state\": data[\"address\"][\"addressRegion\"],\n            \"postcode\": data[\"address\"][\"postalCode\"],\n            \"opening_hours\": hours.as_opening_hours(),\n        }\n        yield GeojsonPointItem(**properties)\n", "path": "locations/spiders/wafflehouse.py"}]}