prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  404 errors on some of the page in the HELP menus
  Version used
  - psychopy: 2021.2.3
  
  https://www.psychopy.org/builder/builder.html
  https://www.psychopy.org/api/api.html
  
  </issue>
  <code>
  [start of psychopy/app/urls.py]
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 
  4 """A central location to store information about urls
  5 """
  6 urls = dict()
  7 
  8 # links based on string names
  9 urls['builder'] = "https://www.psychopy.org/builder/builder.html"
  10 urls['builder.loops'] = "https://www.psychopy.org/builder/flow.html#loops"
  11 # NB. builder components get their urls defined by the component code
  12 # (so a custom component can have a url)
  13 
  14 urls['downloads'] = "https://github.com/psychopy/psychopy/releases"
  15 urls['changelog'] = "https://www.psychopy.org/changelog.html"
  16 
  17 general = "https://www.psychopy.org/general/"
  18 urls['prefs'] = general + "prefs.html"
  19 urls['prefs.general'] = general + "prefs.html#general-settings"
  20 urls['prefs.app'] = general + "prefs.html#application-settings"
  21 urls['prefs.coder'] = general + "prefs.html#coder-settings"
  22 urls['prefs.builder'] = general + "prefs.html#builder-settings"
  23 urls['prefs.connections'] = general + "prefs.html#connection-settings"
  24 
  25 # links keyed by wxIDs (e.g. menu item IDs)
  26 urls['psychopyHome'] = "https://www.psychopy.org/"
  27 urls['psychopyReference'] = "https://www.psychopy.org/api/api.html"
  28 urls['coderTutorial'] = "https://www.psychopy.org/coder/tutorial1.html"
  29 urls['builderHelp'] = urls['builder']
  30 urls['builderDemos'] = "http://code.google.com/p/psychopy/downloads/list?can=2&q=demos"
  31 urls['projsAbout'] = "https://www.psychopy.org/general/projects.html"
  32
  [end of psychopy/app/urls.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/psychopy/app/urls.py b/psychopy/app/urls.py
  --- a/psychopy/app/urls.py
  +++ b/psychopy/app/urls.py
  @@ -6,7 +6,7 @@
   urls = dict()
   
   # links based on string names
  -urls['builder'] = "https://www.psychopy.org/builder/builder.html"
  +urls['builder'] = "https://www.psychopy.org/builder"
   urls['builder.loops'] = "https://www.psychopy.org/builder/flow.html#loops"
   # NB. builder components get their urls defined by the component code
   # (so a custom component can have a url)
  @@ -24,7 +24,7 @@
   
   # links keyed by wxIDs (e.g. menu item IDs)
   urls['psychopyHome'] = "https://www.psychopy.org/"
  -urls['psychopyReference'] = "https://www.psychopy.org/api/api.html"
  +urls['psychopyReference'] = "https://www.psychopy.org/api"
   urls['coderTutorial'] = "https://www.psychopy.org/coder/tutorial1.html"
   urls['builderHelp'] = urls['builder']
   urls['builderDemos'] = "http://code.google.com/p/psychopy/downloads/list?can=2&q=demos"
  
verification_info: {"golden_diff": "diff --git a/psychopy/app/urls.py b/psychopy/app/urls.py\n--- a/psychopy/app/urls.py\n+++ b/psychopy/app/urls.py\n@@ -6,7 +6,7 @@\n urls = dict()\n \n # links based on string names\n-urls['builder'] = \"https://www.psychopy.org/builder/builder.html\"\n+urls['builder'] = \"https://www.psychopy.org/builder\"\n urls['builder.loops'] = \"https://www.psychopy.org/builder/flow.html#loops\"\n # NB. builder components get their urls defined by the component code\n # (so a custom component can have a url)\n@@ -24,7 +24,7 @@\n \n # links keyed by wxIDs (e.g. menu item IDs)\n urls['psychopyHome'] = \"https://www.psychopy.org/\"\n-urls['psychopyReference'] = \"https://www.psychopy.org/api/api.html\"\n+urls['psychopyReference'] = \"https://www.psychopy.org/api\"\n urls['coderTutorial'] = \"https://www.psychopy.org/coder/tutorial1.html\"\n urls['builderHelp'] = urls['builder']\n urls['builderDemos'] = \"http://code.google.com/p/psychopy/downloads/list?can=2&q=demos\"\n", "issue": "404 errors on some of the page in the HELP menus\nVersion used\r\n- psychopy: 2021.2.3\r\n\r\nhttps://www.psychopy.org/builder/builder.html\r\nhttps://www.psychopy.org/api/api.html\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"A central location to store information about urls\n\"\"\"\nurls = dict()\n\n# links based on string names\nurls['builder'] = \"https://www.psychopy.org/builder/builder.html\"\nurls['builder.loops'] = \"https://www.psychopy.org/builder/flow.html#loops\"\n# NB. builder components get their urls defined by the component code\n# (so a custom component can have a url)\n\nurls['downloads'] = \"https://github.com/psychopy/psychopy/releases\"\nurls['changelog'] = \"https://www.psychopy.org/changelog.html\"\n\ngeneral = \"https://www.psychopy.org/general/\"\nurls['prefs'] = general + \"prefs.html\"\nurls['prefs.general'] = general + \"prefs.html#general-settings\"\nurls['prefs.app'] = general + \"prefs.html#application-settings\"\nurls['prefs.coder'] = general + \"prefs.html#coder-settings\"\nurls['prefs.builder'] = general + \"prefs.html#builder-settings\"\nurls['prefs.connections'] = general + \"prefs.html#connection-settings\"\n\n# links keyed by wxIDs (e.g. menu item IDs)\nurls['psychopyHome'] = \"https://www.psychopy.org/\"\nurls['psychopyReference'] = \"https://www.psychopy.org/api/api.html\"\nurls['coderTutorial'] = \"https://www.psychopy.org/coder/tutorial1.html\"\nurls['builderHelp'] = urls['builder']\nurls['builderDemos'] = \"http://code.google.com/p/psychopy/downloads/list?can=2&q=demos\"\nurls['projsAbout'] = \"https://www.psychopy.org/general/projects.html\"\n", "path": "psychopy/app/urls.py"}]}