prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Spider anytime_fitness is broken
  During the global build at 2021-09-29-14-42-48, spider **anytime_fitness** failed with **0 features** and **0 errors**.
  
  Here's [the log](https://data.alltheplaces.xyz/runs/2021-09-29-14-42-48/logs/anytime_fitness.txt) and [the output](https://data.alltheplaces.xyz/runs/2021-09-29-14-42-48/output/anytime_fitness.geojson) ([on a map](https://data.alltheplaces.xyz/map.html?show=https://data.alltheplaces.xyz/runs/2021-09-29-14-42-48/output/anytime_fitness.geojson))
  
  </issue>
  <code>
  [start of locations/spiders/anytime_fitness.py]
  1 # -*- coding: utf-8 -*-
  2 import scrapy
  3 from locations.items import GeojsonPointItem
  4 import json
  5 import html
  6 
  7 
  8 class AnytimeFitnessSpider(scrapy.Spider):
  9     name = 'anytime_fitness'
  10     item_attributes = { 'brand': "Anytime Fitness" }
  11     allowed_domains = ['www.anytimefitness.com']
  12 
  13     def start_requests(self):
  14         url = 'https://www.anytimefitness.com/wp-content/uploads/gyms.json'
  15         yield scrapy.Request(url, callback=self.parse)
  16 
  17     def parse(self, response):
  18         gyms = json.loads(response.body_as_unicode())
  19 
  20         for gym in gyms:
  21             yield GeojsonPointItem(
  22                 lat = gym['latitude'],
  23                 lon = gym['longitude'],
  24                 addr_full = ", ".join(filter(None, [gym['content']['address'], gym['content']['address2']])),
  25                 city = gym['content']['city'],
  26                 phone = gym['content']['phone'],
  27                 state = gym['content']['state_abbr'],
  28                 postcode = gym['content']['zip'],
  29                 ref = gym['content']['url'],
  30                 country = gym['content']['country'],
  31                 name = html.unescape(gym['content']['title']),
  32                 extras = {"number": gym['content']['number']}
  33                 )
  34
  [end of locations/spiders/anytime_fitness.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/anytime_fitness.py b/locations/spiders/anytime_fitness.py
  --- a/locations/spiders/anytime_fitness.py
  +++ b/locations/spiders/anytime_fitness.py
  @@ -7,27 +7,27 @@
   
   class AnytimeFitnessSpider(scrapy.Spider):
       name = 'anytime_fitness'
  -    item_attributes = { 'brand': "Anytime Fitness" }
  +    item_attributes = {'brand': "Anytime Fitness", 'brand_wikidata': "Q4778364"}
       allowed_domains = ['www.anytimefitness.com']
   
       def start_requests(self):
  -        url = 'https://www.anytimefitness.com/wp-content/uploads/gyms.json'
  +        url = 'https://www.anytimefitness.com/wp-content/uploads/locations.json'
           yield scrapy.Request(url, callback=self.parse)
   
       def parse(self, response):
  -        gyms = json.loads(response.body_as_unicode())
  +        gyms = json.loads(response.text)
   
           for gym in gyms:
               yield GeojsonPointItem(
  -                lat = gym['latitude'],
  -                lon = gym['longitude'],
  -                addr_full = ", ".join(filter(None, [gym['content']['address'], gym['content']['address2']])),
  -                city = gym['content']['city'],
  -                phone = gym['content']['phone'],
  -                state = gym['content']['state_abbr'],
  -                postcode = gym['content']['zip'],
  -                ref = gym['content']['url'],
  -                country = gym['content']['country'],
  -                name = html.unescape(gym['content']['title']),
  -                extras = {"number": gym['content']['number']}
  -                )
  +                lat=gym['latitude'],
  +                lon=gym['longitude'],
  +                addr_full=", ".join(filter(None, [gym['content']['address'], gym['content']['address2']])),
  +                city=gym['content']['city'],
  +                phone=gym['content']['phone'],
  +                state=gym['content']['state_abbr'],
  +                postcode=gym['content']['zip'],
  +                ref=gym['content']['url'],
  +                country=gym['content']['country'],
  +                name=html.unescape(gym['content']['title']),
  +                extras={"number": gym['content']['number']}
  +            )
  
verification_info: {"golden_diff": "diff --git a/locations/spiders/anytime_fitness.py b/locations/spiders/anytime_fitness.py\n--- a/locations/spiders/anytime_fitness.py\n+++ b/locations/spiders/anytime_fitness.py\n@@ -7,27 +7,27 @@\n \n class AnytimeFitnessSpider(scrapy.Spider):\n     name = 'anytime_fitness'\n-    item_attributes = { 'brand': \"Anytime Fitness\" }\n+    item_attributes = {'brand': \"Anytime Fitness\", 'brand_wikidata': \"Q4778364\"}\n     allowed_domains = ['www.anytimefitness.com']\n \n     def start_requests(self):\n-        url = 'https://www.anytimefitness.com/wp-content/uploads/gyms.json'\n+        url = 'https://www.anytimefitness.com/wp-content/uploads/locations.json'\n         yield scrapy.Request(url, callback=self.parse)\n \n     def parse(self, response):\n-        gyms = json.loads(response.body_as_unicode())\n+        gyms = json.loads(response.text)\n \n         for gym in gyms:\n             yield GeojsonPointItem(\n-                lat = gym['latitude'],\n-                lon = gym['longitude'],\n-                addr_full = \", \".join(filter(None, [gym['content']['address'], gym['content']['address2']])),\n-                city = gym['content']['city'],\n-                phone = gym['content']['phone'],\n-                state = gym['content']['state_abbr'],\n-                postcode = gym['content']['zip'],\n-                ref = gym['content']['url'],\n-                country = gym['content']['country'],\n-                name = html.unescape(gym['content']['title']),\n-                extras = {\"number\": gym['content']['number']}\n-                )\n+                lat=gym['latitude'],\n+                lon=gym['longitude'],\n+                addr_full=\", \".join(filter(None, [gym['content']['address'], gym['content']['address2']])),\n+                city=gym['content']['city'],\n+                phone=gym['content']['phone'],\n+                state=gym['content']['state_abbr'],\n+                postcode=gym['content']['zip'],\n+                ref=gym['content']['url'],\n+                country=gym['content']['country'],\n+                name=html.unescape(gym['content']['title']),\n+                extras={\"number\": gym['content']['number']}\n+            )\n", "issue": "Spider anytime_fitness is broken\nDuring the global build at 2021-09-29-14-42-48, spider **anytime_fitness** failed with **0 features** and **0 errors**.\n\nHere's [the log](https://data.alltheplaces.xyz/runs/2021-09-29-14-42-48/logs/anytime_fitness.txt) and [the output](https://data.alltheplaces.xyz/runs/2021-09-29-14-42-48/output/anytime_fitness.geojson) ([on a map](https://data.alltheplaces.xyz/map.html?show=https://data.alltheplaces.xyz/runs/2021-09-29-14-42-48/output/anytime_fitness.geojson))\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nimport scrapy\nfrom locations.items import GeojsonPointItem\nimport json\nimport html\n\n\nclass AnytimeFitnessSpider(scrapy.Spider):\n    name = 'anytime_fitness'\n    item_attributes = { 'brand': \"Anytime Fitness\" }\n    allowed_domains = ['www.anytimefitness.com']\n\n    def start_requests(self):\n        url = 'https://www.anytimefitness.com/wp-content/uploads/gyms.json'\n        yield scrapy.Request(url, callback=self.parse)\n\n    def parse(self, response):\n        gyms = json.loads(response.body_as_unicode())\n\n        for gym in gyms:\n            yield GeojsonPointItem(\n                lat = gym['latitude'],\n                lon = gym['longitude'],\n                addr_full = \", \".join(filter(None, [gym['content']['address'], gym['content']['address2']])),\n                city = gym['content']['city'],\n                phone = gym['content']['phone'],\n                state = gym['content']['state_abbr'],\n                postcode = gym['content']['zip'],\n                ref = gym['content']['url'],\n                country = gym['content']['country'],\n                name = html.unescape(gym['content']['title']),\n                extras = {\"number\": gym['content']['number']}\n                )\n", "path": "locations/spiders/anytime_fitness.py"}]}