prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Use different namespace and endpoint name for `/safe-apps`
  The endpoint `/api/v1/safe-apps` is currently under the `v1` namespace and `safe-apps` endpoint name.
  
  To align it better with the future endpoints the following should be changed:
  
  - the namespace changes from `v1` to `safe-apps`
  - the endpoint name changes from `safe-apps` to `list`
  
  This results in a reverse url resolution with `safe-apps:list` instead of `v1:safe-apps`
  
  </issue>
  <code>
  [start of src/config/urls.py]
  1 from django.contrib import admin
  2 from django.http import HttpResponse
  3 from django.urls import include, path, re_path
  4 from drf_yasg.views import get_schema_view
  5 from rest_framework import permissions
  6 
  7 schema_view = get_schema_view(
  8     validators=["flex", "ssv"],
  9     public=True,
  10     permission_classes=(permissions.AllowAny,),
  11 )
  12 
  13 urlpatterns = [
  14     path("api/v1/", include("safe_apps.urls", namespace="v1")),
  15     path("api/v1/", include("chains.urls", namespace="chains")),
  16     path("admin/", admin.site.urls),
  17     path("check/", lambda request: HttpResponse("Ok"), name="check"),
  18     re_path(
  19         r"^swagger(?P<format>\.json|\.yaml)$",
  20         schema_view.without_ui(cache_timeout=0),
  21         name="schema-json",
  22     ),
  23     re_path(
  24         r"^$",
  25         schema_view.with_ui("swagger", cache_timeout=0),
  26         name="schema-swagger-ui",
  27     ),
  28 ]
  29
  [end of src/config/urls.py]
  [start of src/safe_apps/urls.py]
  1 from django.urls import path
  2 
  3 from .views import SafeAppsListView
  4 
  5 app_name = "apps"
  6 
  7 urlpatterns = [
  8     path("safe-apps/", SafeAppsListView.as_view(), name="safe-apps"),
  9 ]
  10
  [end of src/safe_apps/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/src/config/urls.py b/src/config/urls.py
  --- a/src/config/urls.py
  +++ b/src/config/urls.py
  @@ -11,7 +11,7 @@
   )
   
   urlpatterns = [
  -    path("api/v1/", include("safe_apps.urls", namespace="v1")),
  +    path("api/v1/", include("safe_apps.urls", namespace="safe-apps")),
       path("api/v1/", include("chains.urls", namespace="chains")),
       path("admin/", admin.site.urls),
       path("check/", lambda request: HttpResponse("Ok"), name="check"),
  diff --git a/src/safe_apps/urls.py b/src/safe_apps/urls.py
  --- a/src/safe_apps/urls.py
  +++ b/src/safe_apps/urls.py
  @@ -5,5 +5,5 @@
   app_name = "apps"
   
   urlpatterns = [
  -    path("safe-apps/", SafeAppsListView.as_view(), name="safe-apps"),
  +    path("safe-apps/", SafeAppsListView.as_view(), name="list"),
   ]
  
verification_info: {"golden_diff": "diff --git a/src/config/urls.py b/src/config/urls.py\n--- a/src/config/urls.py\n+++ b/src/config/urls.py\n@@ -11,7 +11,7 @@\n )\n \n urlpatterns = [\n-    path(\"api/v1/\", include(\"safe_apps.urls\", namespace=\"v1\")),\n+    path(\"api/v1/\", include(\"safe_apps.urls\", namespace=\"safe-apps\")),\n     path(\"api/v1/\", include(\"chains.urls\", namespace=\"chains\")),\n     path(\"admin/\", admin.site.urls),\n     path(\"check/\", lambda request: HttpResponse(\"Ok\"), name=\"check\"),\ndiff --git a/src/safe_apps/urls.py b/src/safe_apps/urls.py\n--- a/src/safe_apps/urls.py\n+++ b/src/safe_apps/urls.py\n@@ -5,5 +5,5 @@\n app_name = \"apps\"\n \n urlpatterns = [\n-    path(\"safe-apps/\", SafeAppsListView.as_view(), name=\"safe-apps\"),\n+    path(\"safe-apps/\", SafeAppsListView.as_view(), name=\"list\"),\n ]\n", "issue": "Use different namespace and endpoint name for `/safe-apps`\nThe endpoint `/api/v1/safe-apps` is currently under the `v1` namespace and `safe-apps` endpoint name.\r\n\r\nTo align it better with the future endpoints the following should be changed:\r\n\r\n- the namespace changes from `v1` to `safe-apps`\r\n- the endpoint name changes from `safe-apps` to `list`\r\n\r\nThis results in a reverse url resolution with `safe-apps:list` instead of `v1:safe-apps`\n", "before_files": [{"content": "from django.contrib import admin\nfrom django.http import HttpResponse\nfrom django.urls import include, path, re_path\nfrom drf_yasg.views import get_schema_view\nfrom rest_framework import permissions\n\nschema_view = get_schema_view(\n    validators=[\"flex\", \"ssv\"],\n    public=True,\n    permission_classes=(permissions.AllowAny,),\n)\n\nurlpatterns = [\n    path(\"api/v1/\", include(\"safe_apps.urls\", namespace=\"v1\")),\n    path(\"api/v1/\", include(\"chains.urls\", namespace=\"chains\")),\n    path(\"admin/\", admin.site.urls),\n    path(\"check/\", lambda request: HttpResponse(\"Ok\"), name=\"check\"),\n    re_path(\n        r\"^swagger(?P<format>\\.json|\\.yaml)$\",\n        schema_view.without_ui(cache_timeout=0),\n        name=\"schema-json\",\n    ),\n    re_path(\n        r\"^$\",\n        schema_view.with_ui(\"swagger\", cache_timeout=0),\n        name=\"schema-swagger-ui\",\n    ),\n]\n", "path": "src/config/urls.py"}, {"content": "from django.urls import path\n\nfrom .views import SafeAppsListView\n\napp_name = \"apps\"\n\nurlpatterns = [\n    path(\"safe-apps/\", SafeAppsListView.as_view(), name=\"safe-apps\"),\n]\n", "path": "src/safe_apps/urls.py"}]}