We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN 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


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `examples/embed/simple/simple.py`
Content:
```
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 FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

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,

{"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"}], "after_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    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 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    js_resources = INLINE.render_js()\n    css_resources = INLINE.render_css()\n\n    script, div = components(fig)\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"}]}