prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Docs for styling selection overlays
  There is currently no way to style the box or poly overlays that various selection tools use. 
  
  
  </issue>
  <code>
  [start of sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py]
  1 import numpy as np
  2 
  3 from bokeh.models import BoxSelectTool, BoxZoomTool, LassoSelectTool
  4 from bokeh.plotting import figure, output_file, show
  5 
  6 output_file("styling_tool_overlays.html")
  7 
  8 x = np.random.random(size=200)
  9 y = np.random.random(size=200)
  10 
  11 # Basic plot setup
  12 plot = figure(width=400, height=400, title='Select and Zoom',
  13               tools="box_select,box_zoom,lasso_select,reset")
  14 
  15 plot.circle(x, y, size=5)
  16 
  17 plot.select_one(BoxSelectTool).overlay.fill_color = "firebrick"
  18 plot.select_one(BoxSelectTool).overlay.line_color = None
  19 
  20 plot.select_one(BoxZoomTool).overlay.line_color = "olive"
  21 plot.select_one(BoxZoomTool).overlay.line_width = 8
  22 plot.select_one(BoxZoomTool).overlay.line_dash = "solid"
  23 plot.select_one(BoxZoomTool).overlay.fill_color = None
  24 
  25 plot.select_one(LassoSelectTool).overlay.line_dash = [10, 10]
  26 
  27 show(plot)
  [end of sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.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/sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py b/sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py
  --- a/sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py
  +++ b/sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py
  @@ -14,14 +14,18 @@
   
   plot.circle(x, y, size=5)
   
  -plot.select_one(BoxSelectTool).overlay.fill_color = "firebrick"
  -plot.select_one(BoxSelectTool).overlay.line_color = None
  +select_overlay = plot.select_one(BoxSelectTool).overlay
   
  -plot.select_one(BoxZoomTool).overlay.line_color = "olive"
  -plot.select_one(BoxZoomTool).overlay.line_width = 8
  -plot.select_one(BoxZoomTool).overlay.line_dash = "solid"
  -plot.select_one(BoxZoomTool).overlay.fill_color = None
  +select_overlay.fill_color = "firebrick"
  +select_overlay.line_color = None
  +
  +zoom_overlay = plot.select_one(BoxZoomTool).overlay
  +
  +zoom_overlay.line_color = "olive"
  +zoom_overlay.line_width = 8
  +zoom_overlay.line_dash = "solid"
  +zoom_overlay.fill_color = None
   
   plot.select_one(LassoSelectTool).overlay.line_dash = [10, 10]
   
  -show(plot)
  \ No newline at end of file
  +show(plot)
  
verification_info: {"golden_diff": "diff --git a/sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py b/sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py\n--- a/sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py\n+++ b/sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py\n@@ -14,14 +14,18 @@\n \n plot.circle(x, y, size=5)\n \n-plot.select_one(BoxSelectTool).overlay.fill_color = \"firebrick\"\n-plot.select_one(BoxSelectTool).overlay.line_color = None\n+select_overlay = plot.select_one(BoxSelectTool).overlay\n \n-plot.select_one(BoxZoomTool).overlay.line_color = \"olive\"\n-plot.select_one(BoxZoomTool).overlay.line_width = 8\n-plot.select_one(BoxZoomTool).overlay.line_dash = \"solid\"\n-plot.select_one(BoxZoomTool).overlay.fill_color = None\n+select_overlay.fill_color = \"firebrick\"\n+select_overlay.line_color = None\n+\n+zoom_overlay = plot.select_one(BoxZoomTool).overlay\n+\n+zoom_overlay.line_color = \"olive\"\n+zoom_overlay.line_width = 8\n+zoom_overlay.line_dash = \"solid\"\n+zoom_overlay.fill_color = None\n \n plot.select_one(LassoSelectTool).overlay.line_dash = [10, 10]\n \n-show(plot)\n\\ No newline at end of file\n+show(plot)\n", "issue": "Docs for styling selection overlays\nThere is currently no way to style the box or poly overlays that various selection tools use. \n\n", "before_files": [{"content": "import numpy as np\n\nfrom bokeh.models import BoxSelectTool, BoxZoomTool, LassoSelectTool\nfrom bokeh.plotting import figure, output_file, show\n\noutput_file(\"styling_tool_overlays.html\")\n\nx = np.random.random(size=200)\ny = np.random.random(size=200)\n\n# Basic plot setup\nplot = figure(width=400, height=400, title='Select and Zoom',\n              tools=\"box_select,box_zoom,lasso_select,reset\")\n\nplot.circle(x, y, size=5)\n\nplot.select_one(BoxSelectTool).overlay.fill_color = \"firebrick\"\nplot.select_one(BoxSelectTool).overlay.line_color = None\n\nplot.select_one(BoxZoomTool).overlay.line_color = \"olive\"\nplot.select_one(BoxZoomTool).overlay.line_width = 8\nplot.select_one(BoxZoomTool).overlay.line_dash = \"solid\"\nplot.select_one(BoxZoomTool).overlay.fill_color = None\n\nplot.select_one(LassoSelectTool).overlay.line_dash = [10, 10]\n\nshow(plot)", "path": "sphinx/source/docs/user_guide/source_examples/styling_tool_overlays.py"}]}