prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Test bokehjs/examples and run them on travis ci
  They are constantly broken due to not being continuously tested.
  
  </issue>
  <code>
  [start of examples/plotting/file/airports_map.py]
  1 from __future__ import print_function
  2 
  3 from bokeh.layouts import row
  4 from bokeh.models import (
  5     Range1d, WMTSTileSource, ColumnDataSource, HoverTool,
  6 )
  7 from bokeh.plotting import figure, show, output_file
  8 from bokeh.sampledata.airports import data as airports
  9 from bokeh.tile_providers import CARTODBPOSITRON
  10 
  11 points_source = ColumnDataSource(airports)
  12 title = "US Airports: Field Elevation > 1500m"
  13 
  14 def plot(tile_source, filename):
  15     output_file(filename, title=title)
  16 
  17     # set to roughly extent of points
  18     x_range = Range1d(start=airports['x'].min() - 10000, end=airports['x'].max() + 10000, bounds=None)
  19     y_range = Range1d(start=airports['y'].min() - 10000, end=airports['y'].max() + 10000, bounds=None)
  20 
  21     # create plot and add tools
  22     p = figure(tools='wheel_zoom,pan', x_range=x_range, y_range=y_range, title=title)
  23     p.axis.visible = False
  24     hover_tool = HoverTool(tooltips=[("Name", "@name"), ("Elevation", "@elevation (m)")])
  25     p.add_tools(hover_tool)
  26     p.add_tile(tile_source)
  27 
  28     # create point glyphs
  29     p.circle(x='x', y='y', size=9, fill_color="#60ACA1", line_color="#D2C4C1", line_width=1.5, source=points_source)
  30     return p
  31 
  32 # create a tile source
  33 tile_options = {}
  34 tile_options['url'] = 'http://otile2.mqcdn.com/tiles/1.0.0/sat/{Z}/{X}/{Y}.png'
  35 mq_tile_source = WMTSTileSource(**tile_options)
  36 
  37 carto = plot(CARTODBPOSITRON, 'airports_map_cartodb.html')
  38 mq = plot(mq_tile_source, 'airports_map.html')
  39 
  40 show(row([carto, mq]))
  41
  [end of examples/plotting/file/airports_map.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/examples/plotting/file/airports_map.py b/examples/plotting/file/airports_map.py
  --- a/examples/plotting/file/airports_map.py
  +++ b/examples/plotting/file/airports_map.py
  @@ -31,7 +31,7 @@
   
   # create a tile source
   tile_options = {}
  -tile_options['url'] = 'http://otile2.mqcdn.com/tiles/1.0.0/sat/{Z}/{X}/{Y}.png'
  +# TODO tile_options['url'] = 'http://otile2.mqcdn.com/tiles/1.0.0/sat/{Z}/{X}/{Y}.png'
   mq_tile_source = WMTSTileSource(**tile_options)
   
   carto = plot(CARTODBPOSITRON, 'airports_map_cartodb.html')
  
verification_info: {"golden_diff": "diff --git a/examples/plotting/file/airports_map.py b/examples/plotting/file/airports_map.py\n--- a/examples/plotting/file/airports_map.py\n+++ b/examples/plotting/file/airports_map.py\n@@ -31,7 +31,7 @@\n \n # create a tile source\n tile_options = {}\n-tile_options['url'] = 'http://otile2.mqcdn.com/tiles/1.0.0/sat/{Z}/{X}/{Y}.png'\n+# TODO tile_options['url'] = 'http://otile2.mqcdn.com/tiles/1.0.0/sat/{Z}/{X}/{Y}.png'\n mq_tile_source = WMTSTileSource(**tile_options)\n \n carto = plot(CARTODBPOSITRON, 'airports_map_cartodb.html')\n", "issue": "Test bokehjs/examples and run them on travis ci\nThey are constantly broken due to not being continuously tested.\n", "before_files": [{"content": "from __future__ import print_function\n\nfrom bokeh.layouts import row\nfrom bokeh.models import (\n    Range1d, WMTSTileSource, ColumnDataSource, HoverTool,\n)\nfrom bokeh.plotting import figure, show, output_file\nfrom bokeh.sampledata.airports import data as airports\nfrom bokeh.tile_providers import CARTODBPOSITRON\n\npoints_source = ColumnDataSource(airports)\ntitle = \"US Airports: Field Elevation > 1500m\"\n\ndef plot(tile_source, filename):\n    output_file(filename, title=title)\n\n    # set to roughly extent of points\n    x_range = Range1d(start=airports['x'].min() - 10000, end=airports['x'].max() + 10000, bounds=None)\n    y_range = Range1d(start=airports['y'].min() - 10000, end=airports['y'].max() + 10000, bounds=None)\n\n    # create plot and add tools\n    p = figure(tools='wheel_zoom,pan', x_range=x_range, y_range=y_range, title=title)\n    p.axis.visible = False\n    hover_tool = HoverTool(tooltips=[(\"Name\", \"@name\"), (\"Elevation\", \"@elevation (m)\")])\n    p.add_tools(hover_tool)\n    p.add_tile(tile_source)\n\n    # create point glyphs\n    p.circle(x='x', y='y', size=9, fill_color=\"#60ACA1\", line_color=\"#D2C4C1\", line_width=1.5, source=points_source)\n    return p\n\n# create a tile source\ntile_options = {}\ntile_options['url'] = 'http://otile2.mqcdn.com/tiles/1.0.0/sat/{Z}/{X}/{Y}.png'\nmq_tile_source = WMTSTileSource(**tile_options)\n\ncarto = plot(CARTODBPOSITRON, 'airports_map_cartodb.html')\nmq = plot(mq_tile_source, 'airports_map.html')\n\nshow(row([carto, mq]))\n", "path": "examples/plotting/file/airports_map.py"}]}