prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  docs: 404 error while accessing contribution guide
  When I was trying to access the contribution guide mentioned in `CONTRIBUTING.rst`, I am getting 404 error - https://googleapis.github.io/google-api-python-client/contributing.html
  
  ![how-to-contribute](https://user-images.githubusercontent.com/70377445/145891836-28113d3d-a01f-4279-ac49-1b7ef7ee810b.jpg)
  
  
  ![404](https://user-images.githubusercontent.com/70377445/145891868-d9057095-f390-4263-b03e-1701915bb8e7.jpg)
  
  
  </issue>
  <code>
  [start of owlbot.py]
  1 # Copyright 2020 Google LLC
  2 #
  3 # Licensed under the Apache License, Version 2.0 (the "License");
  4 # you may not use this file except in compliance with the License.
  5 # You may obtain a copy of the License at
  6 #
  7 #      http://www.apache.org/licenses/LICENSE-2.0
  8 #
  9 # Unless required by applicable law or agreed to in writing, software
  10 # distributed under the License is distributed on an "AS IS" BASIS,
  11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 # See the License for the specific language governing permissions and
  13 # limitations under the License.
  14 
  15 import synthtool as s
  16 from synthtool import gcp
  17 
  18 from synthtool.languages import python
  19 
  20 common = gcp.CommonTemplates()
  21 
  22 # ----------------------------------------------------------------------------
  23 # Add templated files
  24 # ----------------------------------------------------------------------------
  25 templated_files = common.py_library()
  26 
  27 # Copy kokoro configs.
  28 # Docs are excluded as repo docs cannot currently be generated using sphinx.
  29 s.move(templated_files / '.kokoro', excludes=['**/docs/*', 'publish-docs.sh'])
  30 s.move(templated_files / '.trampolinerc')  # config file for trampoline_v2
  31 
  32 # Also move issue templates
  33 s.move(templated_files / '.github', excludes=['CODEOWNERS'])
  34 
  35 # Move scripts folder needed for samples CI
  36 s.move(templated_files / 'scripts')
  37 
  38 # ----------------------------------------------------------------------------
  39 # Samples templates
  40 # ----------------------------------------------------------------------------
  41 
  42 python.py_samples(skip_readmes=True)
  43
  [end of owlbot.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/owlbot.py b/owlbot.py
  --- a/owlbot.py
  +++ b/owlbot.py
  @@ -35,6 +35,9 @@
   # Move scripts folder needed for samples CI
   s.move(templated_files / 'scripts')
   
  +# Copy CONTRIBUTING.rst
  +s.move(templated_files / 'CONTRIBUTING.rst')
  +
   # ----------------------------------------------------------------------------
   # Samples templates
   # ----------------------------------------------------------------------------
  
verification_info: {"golden_diff": "diff --git a/owlbot.py b/owlbot.py\n--- a/owlbot.py\n+++ b/owlbot.py\n@@ -35,6 +35,9 @@\n # Move scripts folder needed for samples CI\n s.move(templated_files / 'scripts')\n \n+# Copy CONTRIBUTING.rst\n+s.move(templated_files / 'CONTRIBUTING.rst')\n+\n # ----------------------------------------------------------------------------\n # Samples templates\n # ----------------------------------------------------------------------------\n", "issue": "docs: 404 error while accessing contribution guide\nWhen I was trying to access the contribution guide mentioned in `CONTRIBUTING.rst`, I am getting 404 error - https://googleapis.github.io/google-api-python-client/contributing.html\r\n\r\n![how-to-contribute](https://user-images.githubusercontent.com/70377445/145891836-28113d3d-a01f-4279-ac49-1b7ef7ee810b.jpg)\r\n\r\n\r\n![404](https://user-images.githubusercontent.com/70377445/145891868-d9057095-f390-4263-b03e-1701915bb8e7.jpg)\r\n\n", "before_files": [{"content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport synthtool as s\nfrom synthtool import gcp\n\nfrom synthtool.languages import python\n\ncommon = gcp.CommonTemplates()\n\n# ----------------------------------------------------------------------------\n# Add templated files\n# ----------------------------------------------------------------------------\ntemplated_files = common.py_library()\n\n# Copy kokoro configs.\n# Docs are excluded as repo docs cannot currently be generated using sphinx.\ns.move(templated_files / '.kokoro', excludes=['**/docs/*', 'publish-docs.sh'])\ns.move(templated_files / '.trampolinerc')  # config file for trampoline_v2\n\n# Also move issue templates\ns.move(templated_files / '.github', excludes=['CODEOWNERS'])\n\n# Move scripts folder needed for samples CI\ns.move(templated_files / 'scripts')\n\n# ----------------------------------------------------------------------------\n# Samples templates\n# ----------------------------------------------------------------------------\n\npython.py_samples(skip_readmes=True)\n", "path": "owlbot.py"}]}