prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Depreciated example
  https://github.com/bokeh/bokeh/blob/0.12.3/examples/embed/simple/simple.py
  
  ```
  Because the ``resources`` argument is no longer needed, it is deprecated and no longer has any effect.
  ```
  
  The link is also broken:
  http://bokeh.pydata.org/en/latest/docs/user_guide/embedding.html#components
  
  
  </issue>
  <code>
  [start of examples/embed/simple/simple.py]
  1 '''This example demonstrates embedding a standalone Bokeh document
  2 into a simple Flask application, with a basic HTML web form.
  3 
  4 To view the example, run:
  5 
  6     python simple.py
  7 
  8 in this directory, and navigate to:
  9 
  10     http://localhost:5000
  11 
  12 '''
  13 from __future__ import print_function
  14 
  15 import flask
  16 
  17 from bokeh.embed import components
  18 from bokeh.plotting import figure
  19 from bokeh.resources import INLINE
  20 from bokeh.util.string import encode_utf8
  21 
  22 app = flask.Flask(__name__)
  23 
  24 colors = {
  25     'Black': '#000000',
  26     'Red':   '#FF0000',
  27     'Green': '#00FF00',
  28     'Blue':  '#0000FF',
  29 }
  30 
  31 def getitem(obj, item, default):
  32     if item not in obj:
  33         return default
  34     else:
  35         return obj[item]
  36 
  37 @app.route("/")
  38 def polynomial():
  39     """ Very simple embedding of a polynomial chart
  40 
  41     """
  42 
  43     # Grab the inputs arguments from the URL
  44     # This is automated by the button
  45     args = flask.request.args
  46 
  47     # Get all the form arguments in the url with defaults
  48     color = colors[getitem(args, 'color', 'Black')]
  49     _from = int(getitem(args, '_from', 0))
  50     to = int(getitem(args, 'to', 10))
  51 
  52     # Create a polynomial line graph
  53     x = list(range(_from, to + 1))
  54     fig = figure(title="Polynomial")
  55     fig.line(x, [i ** 2 for i in x], color=color, line_width=2)
  56 
  57     # Configure resources to include BokehJS inline in the document.
  58     # For more details see:
  59     #   http://bokeh.pydata.org/en/latest/docs/reference/resources_embedding.html#bokeh-embed
  60     js_resources = INLINE.render_js()
  61     css_resources = INLINE.render_css()
  62 
  63     # For more details see:
  64     #   http://bokeh.pydata.org/en/latest/docs/user_guide/embedding.html#components
  65     script, div = components(fig, INLINE)
  66     html = flask.render_template(
  67         'embed.html',
  68         plot_script=script,
  69         plot_div=div,
  70         js_resources=js_resources,
  71         css_resources=css_resources,
  72         color=color,
  73         _from=_from,
  74         to=to
  75     )
  76     return encode_utf8(html)
  77 
  78 if __name__ == "__main__":
  79     print(__doc__)
  80     app.run()
  81
  [end of examples/embed/simple/simple.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/embed/simple/simple.py b/examples/embed/simple/simple.py
  --- a/examples/embed/simple/simple.py
  +++ b/examples/embed/simple/simple.py
  @@ -41,7 +41,6 @@
       """
   
       # Grab the inputs arguments from the URL
  -    # This is automated by the button
       args = flask.request.args
   
       # Get all the form arguments in the url with defaults
  @@ -49,20 +48,15 @@
       _from = int(getitem(args, '_from', 0))
       to = int(getitem(args, 'to', 10))
   
  -    # Create a polynomial line graph
  +    # Create a polynomial line graph with those arguments
       x = list(range(_from, to + 1))
       fig = figure(title="Polynomial")
       fig.line(x, [i ** 2 for i in x], color=color, line_width=2)
   
  -    # Configure resources to include BokehJS inline in the document.
  -    # For more details see:
  -    #   http://bokeh.pydata.org/en/latest/docs/reference/resources_embedding.html#bokeh-embed
       js_resources = INLINE.render_js()
       css_resources = INLINE.render_css()
   
  -    # For more details see:
  -    #   http://bokeh.pydata.org/en/latest/docs/user_guide/embedding.html#components
  -    script, div = components(fig, INLINE)
  +    script, div = components(fig)
       html = flask.render_template(
           'embed.html',
           plot_script=script,
  
verification_info: {"golden_diff": "diff --git a/examples/embed/simple/simple.py b/examples/embed/simple/simple.py\n--- a/examples/embed/simple/simple.py\n+++ b/examples/embed/simple/simple.py\n@@ -41,7 +41,6 @@\n     \"\"\"\n \n     # Grab the inputs arguments from the URL\n-    # This is automated by the button\n     args = flask.request.args\n \n     # Get all the form arguments in the url with defaults\n@@ -49,20 +48,15 @@\n     _from = int(getitem(args, '_from', 0))\n     to = int(getitem(args, 'to', 10))\n \n-    # Create a polynomial line graph\n+    # Create a polynomial line graph with those arguments\n     x = list(range(_from, to + 1))\n     fig = figure(title=\"Polynomial\")\n     fig.line(x, [i ** 2 for i in x], color=color, line_width=2)\n \n-    # Configure resources to include BokehJS inline in the document.\n-    # For more details see:\n-    #   http://bokeh.pydata.org/en/latest/docs/reference/resources_embedding.html#bokeh-embed\n     js_resources = INLINE.render_js()\n     css_resources = INLINE.render_css()\n \n-    # For more details see:\n-    #   http://bokeh.pydata.org/en/latest/docs/user_guide/embedding.html#components\n-    script, div = components(fig, INLINE)\n+    script, div = components(fig)\n     html = flask.render_template(\n         'embed.html',\n         plot_script=script,\n", "issue": "Depreciated example\nhttps://github.com/bokeh/bokeh/blob/0.12.3/examples/embed/simple/simple.py\n\n```\nBecause the ``resources`` argument is no longer needed, it is deprecated and no longer has any effect.\n```\n\nThe link is also broken:\nhttp://bokeh.pydata.org/en/latest/docs/user_guide/embedding.html#components\n\n", "before_files": [{"content": "'''This example demonstrates embedding a standalone Bokeh document\ninto a simple Flask application, with a basic HTML web form.\n\nTo view the example, run:\n\n    python simple.py\n\nin this directory, and navigate to:\n\n    http://localhost:5000\n\n'''\nfrom __future__ import print_function\n\nimport flask\n\nfrom bokeh.embed import components\nfrom bokeh.plotting import figure\nfrom bokeh.resources import INLINE\nfrom bokeh.util.string import encode_utf8\n\napp = flask.Flask(__name__)\n\ncolors = {\n    'Black': '#000000',\n    'Red':   '#FF0000',\n    'Green': '#00FF00',\n    'Blue':  '#0000FF',\n}\n\ndef getitem(obj, item, default):\n    if item not in obj:\n        return default\n    else:\n        return obj[item]\n\n@app.route(\"/\")\ndef polynomial():\n    \"\"\" Very simple embedding of a polynomial chart\n\n    \"\"\"\n\n    # Grab the inputs arguments from the URL\n    # This is automated by the button\n    args = flask.request.args\n\n    # Get all the form arguments in the url with defaults\n    color = colors[getitem(args, 'color', 'Black')]\n    _from = int(getitem(args, '_from', 0))\n    to = int(getitem(args, 'to', 10))\n\n    # Create a polynomial line graph\n    x = list(range(_from, to + 1))\n    fig = figure(title=\"Polynomial\")\n    fig.line(x, [i ** 2 for i in x], color=color, line_width=2)\n\n    # Configure resources to include BokehJS inline in the document.\n    # For more details see:\n    #   http://bokeh.pydata.org/en/latest/docs/reference/resources_embedding.html#bokeh-embed\n    js_resources = INLINE.render_js()\n    css_resources = INLINE.render_css()\n\n    # For more details see:\n    #   http://bokeh.pydata.org/en/latest/docs/user_guide/embedding.html#components\n    script, div = components(fig, INLINE)\n    html = flask.render_template(\n        'embed.html',\n        plot_script=script,\n        plot_div=div,\n        js_resources=js_resources,\n        css_resources=css_resources,\n        color=color,\n        _from=_from,\n        to=to\n    )\n    return encode_utf8(html)\n\nif __name__ == \"__main__\":\n    print(__doc__)\n    app.run()\n", "path": "examples/embed/simple/simple.py"}]}