We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Make buttons use title-case
## Acceptance Criteria
- [ ] All buttons are using title case

## Additional context
This is according to the design in Figma

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `benefits/core/views.py`
Content:
```
1 """
2 The core application: view definition for the root of the webapp.
3 """
4 from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound, HttpResponseServerError
5 from django.shortcuts import redirect
6 from django.template import loader
7 from django.template.response import TemplateResponse
8 from django.urls import reverse
9 from django.utils.translation import gettext as _
10 
11 from . import models, session, viewmodels
12 from .middleware import pageview_decorator
13 
14 ROUTE_INDEX = "core:index"
15 ROUTE_ELIGIBILITY = "eligibility:index"
16 ROUTE_HELP = "core:help"
17 
18 TEMPLATE_PAGE = "core/page.html"
19 TEMPLATE_AGENCY = "core/agency_index.html"
20 TEMPLATE_HELP = "core/help.html"
21 
22 
23 @pageview_decorator
24 def index(request):
25     """View handler for the main entry page."""
26     session.reset(request)
27 
28     agencies = models.TransitAgency.all_active()
29 
30     if len(agencies) == 1:
31         agency = agencies[0]
32         return redirect(agency.index_url)
33 
34     # generate a button to the landing page for each active agency
35     buttons = [viewmodels.Button.outline_primary(text=a.short_name, url=a.index_url) for a in agencies]
36     buttons[0].classes.append("mt-3")
37     buttons[0].label = _("core.pages.index.chooseprovider")
38 
39     page = viewmodels.Page(
40         title=_("core.pages.index.title"),
41         content_title=_("core.pages.index.content_title"),
42         buttons=buttons,
43         classes="home",
44     )
45 
46     return TemplateResponse(request, TEMPLATE_PAGE, page.context_dict())
47 
48 
49 @pageview_decorator
50 def agency_index(request, agency):
51     """View handler for an agency entry page."""
52     session.reset(request)
53     session.update(request, agency=agency, origin=agency.index_url)
54 
55     if len(agency.eligibility_verifiers.all()) == 1:
56         return redirect(reverse(ROUTE_ELIGIBILITY))
57 
58     button = viewmodels.Button.primary(text=_("core.pages.index.continue"), url=reverse(ROUTE_ELIGIBILITY))
59     button.label = _("core.pages.agency_index.button.label")
60 
61     page = viewmodels.Page(
62         title=_("core.pages.agency_index.title"),
63         content_title=_("core.pages.agency_index.content_title"),
64         button=button,
65         classes="home",
66     )
67 
68     help_page = reverse(ROUTE_HELP)
69     context_dict = {**page.context_dict(), **{"info_link": f"{help_page}#about"}}
70 
71     return TemplateResponse(request, TEMPLATE_AGENCY, context_dict)
72 
73 
74 @pageview_decorator
75 def agency_public_key(request, agency):
76     """View handler returns an agency's public key as plain text."""
77     return HttpResponse(agency.public_key_data, content_type="text/plain")
78 
79 
80 @pageview_decorator
81 def help(request):
82     """View handler for the help page."""
83     if session.active_agency(request):
84         agency = session.agency(request)
85         buttons = viewmodels.Button.agency_contact_links(agency)
86     else:
87         buttons = [btn for a in models.TransitAgency.all_active() for btn in viewmodels.Button.agency_contact_links(a)]
88 
89     buttons.append(viewmodels.Button.home(request, _("core.buttons.back")))
90 
91     page = viewmodels.Page(
92         title=_("core.buttons.help"),
93         content_title=_("core.buttons.help"),
94         buttons=buttons,
95     )
96 
97     return TemplateResponse(request, TEMPLATE_HELP, page.context_dict())
98 
99 
100 @pageview_decorator
101 def bad_request(request, exception, template_name="400.html"):
102     """View handler for HTTP 400 Bad Request responses."""
103     if session.active_agency(request):
104         session.update(request, origin=session.agency(request).index_url)
105     else:
106         session.update(request, origin=reverse(ROUTE_INDEX))
107 
108     home = viewmodels.Button.home(request)
109     page = viewmodels.ErrorPage.server_error(button=home)
110     t = loader.get_template(template_name)
111 
112     return HttpResponseBadRequest(t.render(page.context_dict()))
113 
114 
115 @pageview_decorator
116 def csrf_failure(request, reason):
117     """
118     View handler for CSRF_FAILURE_VIEW with custom data.
119     """
120     if session.active_agency(request):
121         session.update(request, origin=session.agency(request).index_url)
122     else:
123         session.update(request, origin=reverse(ROUTE_INDEX))
124 
125     home = viewmodels.Button.home(request)
126     page = viewmodels.ErrorPage.not_found(button=home, path=request.path)
127     t = loader.get_template("400.html")
128 
129     return HttpResponseNotFound(t.render(page.context_dict()))
130 
131 
132 @pageview_decorator
133 def page_not_found(request, exception, template_name="404.html"):
134     """View handler for HTTP 404 Not Found responses."""
135     if session.active_agency(request):
136         session.update(request, origin=session.agency(request).index_url)
137     else:
138         session.update(request, origin=reverse(ROUTE_INDEX))
139 
140     home = viewmodels.Button.home(request)
141     # show a more user-friendly message instead of not_found
142     page = viewmodels.ErrorPage.user_error(button=home, path=request.path)
143     t = loader.get_template(template_name)
144 
145     return HttpResponseNotFound(t.render(page.context_dict()))
146 
147 
148 @pageview_decorator
149 def server_error(request, template_name="500.html"):
150     """View handler for HTTP 500 Server Error responses."""
151     if session.active_agency(request):
152         session.update(request, origin=session.agency(request).index_url)
153     else:
154         session.update(request, origin=reverse(ROUTE_INDEX))
155 
156     home = viewmodels.Button.home(request)
157     page = viewmodels.ErrorPage.server_error(button=home)
158     t = loader.get_template(template_name)
159 
160     return HttpResponseServerError(t.render(page.context_dict()))
161
```
--- 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/benefits/core/views.py b/benefits/core/views.py
--- a/benefits/core/views.py
+++ b/benefits/core/views.py
@@ -56,19 +56,15 @@
         return redirect(reverse(ROUTE_ELIGIBILITY))
 
     button = viewmodels.Button.primary(text=_("core.pages.index.continue"), url=reverse(ROUTE_ELIGIBILITY))
-    button.label = _("core.pages.agency_index.button.label")
 
     page = viewmodels.Page(
         title=_("core.pages.agency_index.title"),
-        content_title=_("core.pages.agency_index.content_title"),
+        content_title=_("core.pages.agency_index.mst_cc.content_title"),
         button=button,
         classes="home",
     )
 
-    help_page = reverse(ROUTE_HELP)
-    context_dict = {**page.context_dict(), **{"info_link": f"{help_page}#about"}}
-
-    return TemplateResponse(request, TEMPLATE_AGENCY, context_dict)
+    return TemplateResponse(request, TEMPLATE_AGENCY, page.context_dict())
 
 
 @pageview_decorator

{"golden_diff": "diff --git a/benefits/core/views.py b/benefits/core/views.py\n--- a/benefits/core/views.py\n+++ b/benefits/core/views.py\n@@ -56,19 +56,15 @@\n         return redirect(reverse(ROUTE_ELIGIBILITY))\n \n     button = viewmodels.Button.primary(text=_(\"core.pages.index.continue\"), url=reverse(ROUTE_ELIGIBILITY))\n-    button.label = _(\"core.pages.agency_index.button.label\")\n \n     page = viewmodels.Page(\n         title=_(\"core.pages.agency_index.title\"),\n-        content_title=_(\"core.pages.agency_index.content_title\"),\n+        content_title=_(\"core.pages.agency_index.mst_cc.content_title\"),\n         button=button,\n         classes=\"home\",\n     )\n \n-    help_page = reverse(ROUTE_HELP)\n-    context_dict = {**page.context_dict(), **{\"info_link\": f\"{help_page}#about\"}}\n-\n-    return TemplateResponse(request, TEMPLATE_AGENCY, context_dict)\n+    return TemplateResponse(request, TEMPLATE_AGENCY, page.context_dict())\n \n \n @pageview_decorator\n", "issue": "Make buttons use title-case\n## Acceptance Criteria\r\n- [ ] All buttons are using title case\r\n\r\n## Additional context\r\nThis is according to the design in Figma\n", "before_files": [{"content": "\"\"\"\nThe core application: view definition for the root of the webapp.\n\"\"\"\nfrom django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound, HttpResponseServerError\nfrom django.shortcuts import redirect\nfrom django.template import loader\nfrom django.template.response import TemplateResponse\nfrom django.urls import reverse\nfrom django.utils.translation import gettext as _\n\nfrom . import models, session, viewmodels\nfrom .middleware import pageview_decorator\n\nROUTE_INDEX = \"core:index\"\nROUTE_ELIGIBILITY = \"eligibility:index\"\nROUTE_HELP = \"core:help\"\n\nTEMPLATE_PAGE = \"core/page.html\"\nTEMPLATE_AGENCY = \"core/agency_index.html\"\nTEMPLATE_HELP = \"core/help.html\"\n\n\n@pageview_decorator\ndef index(request):\n    \"\"\"View handler for the main entry page.\"\"\"\n    session.reset(request)\n\n    agencies = models.TransitAgency.all_active()\n\n    if len(agencies) == 1:\n        agency = agencies[0]\n        return redirect(agency.index_url)\n\n    # generate a button to the landing page for each active agency\n    buttons = [viewmodels.Button.outline_primary(text=a.short_name, url=a.index_url) for a in agencies]\n    buttons[0].classes.append(\"mt-3\")\n    buttons[0].label = _(\"core.pages.index.chooseprovider\")\n\n    page = viewmodels.Page(\n        title=_(\"core.pages.index.title\"),\n        content_title=_(\"core.pages.index.content_title\"),\n        buttons=buttons,\n        classes=\"home\",\n    )\n\n    return TemplateResponse(request, TEMPLATE_PAGE, page.context_dict())\n\n\n@pageview_decorator\ndef agency_index(request, agency):\n    \"\"\"View handler for an agency entry page.\"\"\"\n    session.reset(request)\n    session.update(request, agency=agency, origin=agency.index_url)\n\n    if len(agency.eligibility_verifiers.all()) == 1:\n        return redirect(reverse(ROUTE_ELIGIBILITY))\n\n    button = viewmodels.Button.primary(text=_(\"core.pages.index.continue\"), url=reverse(ROUTE_ELIGIBILITY))\n    button.label = _(\"core.pages.agency_index.button.label\")\n\n    page = viewmodels.Page(\n        title=_(\"core.pages.agency_index.title\"),\n        content_title=_(\"core.pages.agency_index.content_title\"),\n        button=button,\n        classes=\"home\",\n    )\n\n    help_page = reverse(ROUTE_HELP)\n    context_dict = {**page.context_dict(), **{\"info_link\": f\"{help_page}#about\"}}\n\n    return TemplateResponse(request, TEMPLATE_AGENCY, context_dict)\n\n\n@pageview_decorator\ndef agency_public_key(request, agency):\n    \"\"\"View handler returns an agency's public key as plain text.\"\"\"\n    return HttpResponse(agency.public_key_data, content_type=\"text/plain\")\n\n\n@pageview_decorator\ndef help(request):\n    \"\"\"View handler for the help page.\"\"\"\n    if session.active_agency(request):\n        agency = session.agency(request)\n        buttons = viewmodels.Button.agency_contact_links(agency)\n    else:\n        buttons = [btn for a in models.TransitAgency.all_active() for btn in viewmodels.Button.agency_contact_links(a)]\n\n    buttons.append(viewmodels.Button.home(request, _(\"core.buttons.back\")))\n\n    page = viewmodels.Page(\n        title=_(\"core.buttons.help\"),\n        content_title=_(\"core.buttons.help\"),\n        buttons=buttons,\n    )\n\n    return TemplateResponse(request, TEMPLATE_HELP, page.context_dict())\n\n\n@pageview_decorator\ndef bad_request(request, exception, template_name=\"400.html\"):\n    \"\"\"View handler for HTTP 400 Bad Request responses.\"\"\"\n    if session.active_agency(request):\n        session.update(request, origin=session.agency(request).index_url)\n    else:\n        session.update(request, origin=reverse(ROUTE_INDEX))\n\n    home = viewmodels.Button.home(request)\n    page = viewmodels.ErrorPage.server_error(button=home)\n    t = loader.get_template(template_name)\n\n    return HttpResponseBadRequest(t.render(page.context_dict()))\n\n\n@pageview_decorator\ndef csrf_failure(request, reason):\n    \"\"\"\n    View handler for CSRF_FAILURE_VIEW with custom data.\n    \"\"\"\n    if session.active_agency(request):\n        session.update(request, origin=session.agency(request).index_url)\n    else:\n        session.update(request, origin=reverse(ROUTE_INDEX))\n\n    home = viewmodels.Button.home(request)\n    page = viewmodels.ErrorPage.not_found(button=home, path=request.path)\n    t = loader.get_template(\"400.html\")\n\n    return HttpResponseNotFound(t.render(page.context_dict()))\n\n\n@pageview_decorator\ndef page_not_found(request, exception, template_name=\"404.html\"):\n    \"\"\"View handler for HTTP 404 Not Found responses.\"\"\"\n    if session.active_agency(request):\n        session.update(request, origin=session.agency(request).index_url)\n    else:\n        session.update(request, origin=reverse(ROUTE_INDEX))\n\n    home = viewmodels.Button.home(request)\n    # show a more user-friendly message instead of not_found\n    page = viewmodels.ErrorPage.user_error(button=home, path=request.path)\n    t = loader.get_template(template_name)\n\n    return HttpResponseNotFound(t.render(page.context_dict()))\n\n\n@pageview_decorator\ndef server_error(request, template_name=\"500.html\"):\n    \"\"\"View handler for HTTP 500 Server Error responses.\"\"\"\n    if session.active_agency(request):\n        session.update(request, origin=session.agency(request).index_url)\n    else:\n        session.update(request, origin=reverse(ROUTE_INDEX))\n\n    home = viewmodels.Button.home(request)\n    page = viewmodels.ErrorPage.server_error(button=home)\n    t = loader.get_template(template_name)\n\n    return HttpResponseServerError(t.render(page.context_dict()))\n", "path": "benefits/core/views.py"}], "after_files": [{"content": "\"\"\"\nThe core application: view definition for the root of the webapp.\n\"\"\"\nfrom django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound, HttpResponseServerError\nfrom django.shortcuts import redirect\nfrom django.template import loader\nfrom django.template.response import TemplateResponse\nfrom django.urls import reverse\nfrom django.utils.translation import gettext as _\n\nfrom . import models, session, viewmodels\nfrom .middleware import pageview_decorator\n\nROUTE_INDEX = \"core:index\"\nROUTE_ELIGIBILITY = \"eligibility:index\"\nROUTE_HELP = \"core:help\"\n\nTEMPLATE_PAGE = \"core/page.html\"\nTEMPLATE_AGENCY = \"core/agency_index.html\"\nTEMPLATE_HELP = \"core/help.html\"\n\n\n@pageview_decorator\ndef index(request):\n    \"\"\"View handler for the main entry page.\"\"\"\n    session.reset(request)\n\n    agencies = models.TransitAgency.all_active()\n\n    if len(agencies) == 1:\n        agency = agencies[0]\n        return redirect(agency.index_url)\n\n    # generate a button to the landing page for each active agency\n    buttons = [viewmodels.Button.outline_primary(text=a.short_name, url=a.index_url) for a in agencies]\n    buttons[0].classes.append(\"mt-3\")\n    buttons[0].label = _(\"core.pages.index.chooseprovider\")\n\n    page = viewmodels.Page(\n        title=_(\"core.pages.index.title\"),\n        content_title=_(\"core.pages.index.content_title\"),\n        buttons=buttons,\n        classes=\"home\",\n    )\n\n    return TemplateResponse(request, TEMPLATE_PAGE, page.context_dict())\n\n\n@pageview_decorator\ndef agency_index(request, agency):\n    \"\"\"View handler for an agency entry page.\"\"\"\n    session.reset(request)\n    session.update(request, agency=agency, origin=agency.index_url)\n\n    if len(agency.eligibility_verifiers.all()) == 1:\n        return redirect(reverse(ROUTE_ELIGIBILITY))\n\n    button = viewmodels.Button.primary(text=_(\"core.pages.index.continue\"), url=reverse(ROUTE_ELIGIBILITY))\n\n    page = viewmodels.Page(\n        title=_(\"core.pages.agency_index.title\"),\n        content_title=_(\"core.pages.agency_index.mst_cc.content_title\"),\n        button=button,\n        classes=\"home\",\n    )\n\n    return TemplateResponse(request, TEMPLATE_AGENCY, page.context_dict())\n\n\n@pageview_decorator\ndef agency_public_key(request, agency):\n    \"\"\"View handler returns an agency's public key as plain text.\"\"\"\n    return HttpResponse(agency.public_key_data, content_type=\"text/plain\")\n\n\n@pageview_decorator\ndef help(request):\n    \"\"\"View handler for the help page.\"\"\"\n    if session.active_agency(request):\n        agency = session.agency(request)\n        buttons = viewmodels.Button.agency_contact_links(agency)\n    else:\n        buttons = [btn for a in models.TransitAgency.all_active() for btn in viewmodels.Button.agency_contact_links(a)]\n\n    buttons.append(viewmodels.Button.home(request, _(\"core.buttons.back\")))\n\n    page = viewmodels.Page(\n        title=_(\"core.buttons.help\"),\n        content_title=_(\"core.buttons.help\"),\n        buttons=buttons,\n    )\n\n    return TemplateResponse(request, TEMPLATE_HELP, page.context_dict())\n\n\n@pageview_decorator\ndef bad_request(request, exception, template_name=\"400.html\"):\n    \"\"\"View handler for HTTP 400 Bad Request responses.\"\"\"\n    if session.active_agency(request):\n        session.update(request, origin=session.agency(request).index_url)\n    else:\n        session.update(request, origin=reverse(ROUTE_INDEX))\n\n    home = viewmodels.Button.home(request)\n    page = viewmodels.ErrorPage.server_error(button=home)\n    t = loader.get_template(template_name)\n\n    return HttpResponseBadRequest(t.render(page.context_dict()))\n\n\n@pageview_decorator\ndef csrf_failure(request, reason):\n    \"\"\"\n    View handler for CSRF_FAILURE_VIEW with custom data.\n    \"\"\"\n    if session.active_agency(request):\n        session.update(request, origin=session.agency(request).index_url)\n    else:\n        session.update(request, origin=reverse(ROUTE_INDEX))\n\n    home = viewmodels.Button.home(request)\n    page = viewmodels.ErrorPage.not_found(button=home, path=request.path)\n    t = loader.get_template(\"400.html\")\n\n    return HttpResponseNotFound(t.render(page.context_dict()))\n\n\n@pageview_decorator\ndef page_not_found(request, exception, template_name=\"404.html\"):\n    \"\"\"View handler for HTTP 404 Not Found responses.\"\"\"\n    if session.active_agency(request):\n        session.update(request, origin=session.agency(request).index_url)\n    else:\n        session.update(request, origin=reverse(ROUTE_INDEX))\n\n    home = viewmodels.Button.home(request)\n    # show a more user-friendly message instead of not_found\n    page = viewmodels.ErrorPage.user_error(button=home, path=request.path)\n    t = loader.get_template(template_name)\n\n    return HttpResponseNotFound(t.render(page.context_dict()))\n\n\n@pageview_decorator\ndef server_error(request, template_name=\"500.html\"):\n    \"\"\"View handler for HTTP 500 Server Error responses.\"\"\"\n    if session.active_agency(request):\n        session.update(request, origin=session.agency(request).index_url)\n    else:\n        session.update(request, origin=reverse(ROUTE_INDEX))\n\n    home = viewmodels.Button.home(request)\n    page = viewmodels.ErrorPage.server_error(button=home)\n    t = loader.get_template(template_name)\n\n    return HttpResponseServerError(t.render(page.context_dict()))\n", "path": "benefits/core/views.py"}]}