prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Update release notes and set version to 5.0b1
  
  
  </issue>
  <code>
  [start of docs/conf.py]
  1 # Ensure we get the local copy of tornado instead of what's on the standard path
  2 import os
  3 import sys
  4 import time
  5 sys.path.insert(0, os.path.abspath(".."))
  6 import tornado
  7 
  8 master_doc = "index"
  9 
  10 project = "Tornado"
  11 copyright = "2009-%s, The Tornado Authors" % time.strftime("%Y")
  12 
  13 version = release = tornado.version
  14 
  15 extensions = [
  16     "sphinx.ext.autodoc",
  17     "sphinx.ext.coverage",
  18     "sphinx.ext.doctest",
  19     "sphinx.ext.intersphinx",
  20     "sphinx.ext.viewcode",
  21 ]
  22 
  23 primary_domain = 'py'
  24 default_role = 'py:obj'
  25 
  26 autodoc_member_order = "bysource"
  27 autoclass_content = "both"
  28 autodoc_inherit_docstrings = False
  29 
  30 # Without this line sphinx includes a copy of object.__init__'s docstring
  31 # on any class that doesn't define __init__.
  32 # https://bitbucket.org/birkenfeld/sphinx/issue/1337/autoclass_content-both-uses-object__init__
  33 autodoc_docstring_signature = False
  34 
  35 coverage_skip_undoc_in_source = True
  36 coverage_ignore_modules = [
  37     "tornado.platform.asyncio",
  38     "tornado.platform.caresresolver",
  39     "tornado.platform.twisted",
  40 ]
  41 # I wish this could go in a per-module file...
  42 coverage_ignore_classes = [
  43     # tornado.gen
  44     "Runner",
  45 
  46     # tornado.web
  47     "ChunkedTransferEncoding",
  48     "GZipContentEncoding",
  49     "OutputTransform",
  50     "TemplateModule",
  51     "url",
  52 
  53     # tornado.websocket
  54     "WebSocketProtocol",
  55     "WebSocketProtocol13",
  56     "WebSocketProtocol76",
  57 ]
  58 
  59 coverage_ignore_functions = [
  60     # various modules
  61     "doctests",
  62     "main",
  63 
  64     # tornado.escape
  65     # parse_qs_bytes should probably be documented but it's complicated by
  66     # having different implementations between py2 and py3.
  67     "parse_qs_bytes",
  68 
  69     # tornado.gen
  70     "Multi",
  71 ]
  72 
  73 html_favicon = 'favicon.ico'
  74 
  75 latex_documents = [
  76     ('index', 'tornado.tex', 'Tornado Documentation', 'The Tornado Authors', 'manual', False),
  77 ]
  78 
  79 intersphinx_mapping = {
  80     'python': ('https://docs.python.org/3.6/', None),
  81 }
  82 
  83 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
  84 
  85 # On RTD we can't import sphinx_rtd_theme, but it will be applied by
  86 # default anyway.  This block will use the same theme when building locally
  87 # as on RTD.
  88 if not on_rtd:
  89     import sphinx_rtd_theme
  90     html_theme = 'sphinx_rtd_theme'
  91     html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  92
  [end of docs/conf.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/docs/conf.py b/docs/conf.py
  --- a/docs/conf.py
  +++ b/docs/conf.py
  @@ -1,14 +1,14 @@
   # Ensure we get the local copy of tornado instead of what's on the standard path
   import os
   import sys
  -import time
  +
   sys.path.insert(0, os.path.abspath(".."))
   import tornado
   
   master_doc = "index"
   
   project = "Tornado"
  -copyright = "2009-%s, The Tornado Authors" % time.strftime("%Y")
  +copyright = "The Tornado Authors"
   
   version = release = tornado.version
   
  @@ -20,8 +20,8 @@
       "sphinx.ext.viewcode",
   ]
   
  -primary_domain = 'py'
  -default_role = 'py:obj'
  +primary_domain = "py"
  +default_role = "py:obj"
   
   autodoc_member_order = "bysource"
   autoclass_content = "both"
  @@ -42,14 +42,12 @@
   coverage_ignore_classes = [
       # tornado.gen
       "Runner",
  -
       # tornado.web
       "ChunkedTransferEncoding",
       "GZipContentEncoding",
       "OutputTransform",
       "TemplateModule",
       "url",
  -
       # tornado.websocket
       "WebSocketProtocol",
       "WebSocketProtocol13",
  @@ -60,32 +58,36 @@
       # various modules
       "doctests",
       "main",
  -
       # tornado.escape
       # parse_qs_bytes should probably be documented but it's complicated by
       # having different implementations between py2 and py3.
       "parse_qs_bytes",
  -
       # tornado.gen
       "Multi",
   ]
   
  -html_favicon = 'favicon.ico'
  +html_favicon = "favicon.ico"
   
   latex_documents = [
  -    ('index', 'tornado.tex', 'Tornado Documentation', 'The Tornado Authors', 'manual', False),
  +    (
  +        "index",
  +        "tornado.tex",
  +        "Tornado Documentation",
  +        "The Tornado Authors",
  +        "manual",
  +        False,
  +    )
   ]
   
  -intersphinx_mapping = {
  -    'python': ('https://docs.python.org/3.6/', None),
  -}
  +intersphinx_mapping = {"python": ("https://docs.python.org/3.6/", None)}
   
  -on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
  +on_rtd = os.environ.get("READTHEDOCS", None) == "True"
   
   # On RTD we can't import sphinx_rtd_theme, but it will be applied by
   # default anyway.  This block will use the same theme when building locally
   # as on RTD.
   if not on_rtd:
       import sphinx_rtd_theme
  -    html_theme = 'sphinx_rtd_theme'
  +
  +    html_theme = "sphinx_rtd_theme"
       html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  
verification_info: {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -1,14 +1,14 @@\n # Ensure we get the local copy of tornado instead of what's on the standard path\n import os\n import sys\n-import time\n+\n sys.path.insert(0, os.path.abspath(\"..\"))\n import tornado\n \n master_doc = \"index\"\n \n project = \"Tornado\"\n-copyright = \"2009-%s, The Tornado Authors\" % time.strftime(\"%Y\")\n+copyright = \"The Tornado Authors\"\n \n version = release = tornado.version\n \n@@ -20,8 +20,8 @@\n     \"sphinx.ext.viewcode\",\n ]\n \n-primary_domain = 'py'\n-default_role = 'py:obj'\n+primary_domain = \"py\"\n+default_role = \"py:obj\"\n \n autodoc_member_order = \"bysource\"\n autoclass_content = \"both\"\n@@ -42,14 +42,12 @@\n coverage_ignore_classes = [\n     # tornado.gen\n     \"Runner\",\n-\n     # tornado.web\n     \"ChunkedTransferEncoding\",\n     \"GZipContentEncoding\",\n     \"OutputTransform\",\n     \"TemplateModule\",\n     \"url\",\n-\n     # tornado.websocket\n     \"WebSocketProtocol\",\n     \"WebSocketProtocol13\",\n@@ -60,32 +58,36 @@\n     # various modules\n     \"doctests\",\n     \"main\",\n-\n     # tornado.escape\n     # parse_qs_bytes should probably be documented but it's complicated by\n     # having different implementations between py2 and py3.\n     \"parse_qs_bytes\",\n-\n     # tornado.gen\n     \"Multi\",\n ]\n \n-html_favicon = 'favicon.ico'\n+html_favicon = \"favicon.ico\"\n \n latex_documents = [\n-    ('index', 'tornado.tex', 'Tornado Documentation', 'The Tornado Authors', 'manual', False),\n+    (\n+        \"index\",\n+        \"tornado.tex\",\n+        \"Tornado Documentation\",\n+        \"The Tornado Authors\",\n+        \"manual\",\n+        False,\n+    )\n ]\n \n-intersphinx_mapping = {\n-    'python': ('https://docs.python.org/3.6/', None),\n-}\n+intersphinx_mapping = {\"python\": (\"https://docs.python.org/3.6/\", None)}\n \n-on_rtd = os.environ.get('READTHEDOCS', None) == 'True'\n+on_rtd = os.environ.get(\"READTHEDOCS\", None) == \"True\"\n \n # On RTD we can't import sphinx_rtd_theme, but it will be applied by\n # default anyway.  This block will use the same theme when building locally\n # as on RTD.\n if not on_rtd:\n     import sphinx_rtd_theme\n-    html_theme = 'sphinx_rtd_theme'\n+\n+    html_theme = \"sphinx_rtd_theme\"\n     html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\n", "issue": "Update release notes and set version to 5.0b1\n\n", "before_files": [{"content": "# Ensure we get the local copy of tornado instead of what's on the standard path\nimport os\nimport sys\nimport time\nsys.path.insert(0, os.path.abspath(\"..\"))\nimport tornado\n\nmaster_doc = \"index\"\n\nproject = \"Tornado\"\ncopyright = \"2009-%s, The Tornado Authors\" % time.strftime(\"%Y\")\n\nversion = release = tornado.version\n\nextensions = [\n    \"sphinx.ext.autodoc\",\n    \"sphinx.ext.coverage\",\n    \"sphinx.ext.doctest\",\n    \"sphinx.ext.intersphinx\",\n    \"sphinx.ext.viewcode\",\n]\n\nprimary_domain = 'py'\ndefault_role = 'py:obj'\n\nautodoc_member_order = \"bysource\"\nautoclass_content = \"both\"\nautodoc_inherit_docstrings = False\n\n# Without this line sphinx includes a copy of object.__init__'s docstring\n# on any class that doesn't define __init__.\n# https://bitbucket.org/birkenfeld/sphinx/issue/1337/autoclass_content-both-uses-object__init__\nautodoc_docstring_signature = False\n\ncoverage_skip_undoc_in_source = True\ncoverage_ignore_modules = [\n    \"tornado.platform.asyncio\",\n    \"tornado.platform.caresresolver\",\n    \"tornado.platform.twisted\",\n]\n# I wish this could go in a per-module file...\ncoverage_ignore_classes = [\n    # tornado.gen\n    \"Runner\",\n\n    # tornado.web\n    \"ChunkedTransferEncoding\",\n    \"GZipContentEncoding\",\n    \"OutputTransform\",\n    \"TemplateModule\",\n    \"url\",\n\n    # tornado.websocket\n    \"WebSocketProtocol\",\n    \"WebSocketProtocol13\",\n    \"WebSocketProtocol76\",\n]\n\ncoverage_ignore_functions = [\n    # various modules\n    \"doctests\",\n    \"main\",\n\n    # tornado.escape\n    # parse_qs_bytes should probably be documented but it's complicated by\n    # having different implementations between py2 and py3.\n    \"parse_qs_bytes\",\n\n    # tornado.gen\n    \"Multi\",\n]\n\nhtml_favicon = 'favicon.ico'\n\nlatex_documents = [\n    ('index', 'tornado.tex', 'Tornado Documentation', 'The Tornado Authors', 'manual', False),\n]\n\nintersphinx_mapping = {\n    'python': ('https://docs.python.org/3.6/', None),\n}\n\non_rtd = os.environ.get('READTHEDOCS', None) == 'True'\n\n# On RTD we can't import sphinx_rtd_theme, but it will be applied by\n# default anyway.  This block will use the same theme when building locally\n# as on RTD.\nif not on_rtd:\n    import sphinx_rtd_theme\n    html_theme = 'sphinx_rtd_theme'\n    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\n", "path": "docs/conf.py"}]}