We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Make core-beta the default choice during setup
The core theme is effectively deprecated for us so it doesn't make much sense to allow for new core theme installs after 3.6.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `CTFd/forms/setup.py`
Content:
```
1 from flask_babel import lazy_gettext as _l
2 from wtforms import (
3     FileField,
4     HiddenField,
5     PasswordField,
6     RadioField,
7     SelectField,
8     StringField,
9     TextAreaField,
10 )
11 from wtforms.fields.html5 import EmailField
12 from wtforms.validators import InputRequired
13 
14 from CTFd.constants.themes import DEFAULT_THEME
15 from CTFd.forms import BaseForm
16 from CTFd.forms.fields import SubmitField
17 from CTFd.utils.config import get_themes
18 
19 
20 class SetupForm(BaseForm):
21     ctf_name = StringField(
22         _l("Event Name"), description=_l("The name of your CTF event/workshop")
23     )
24     ctf_description = TextAreaField(
25         _l("Event Description"), description=_l("Description for the CTF")
26     )
27     user_mode = RadioField(
28         _l("User Mode"),
29         choices=[("teams", _l("Team Mode")), ("users", _l("User Mode"))],
30         default="teams",
31         description=_l(
32             "Controls whether users join together in teams to play (Team Mode) or play as themselves (User Mode)"
33         ),
34         validators=[InputRequired()],
35     )
36 
37     name = StringField(
38         _l("Admin Username"),
39         description=_l("Your username for the administration account"),
40         validators=[InputRequired()],
41     )
42     email = EmailField(
43         _l("Admin Email"),
44         description=_l("Your email address for the administration account"),
45         validators=[InputRequired()],
46     )
47     password = PasswordField(
48         _l("Admin Password"),
49         description=_l("Your password for the administration account"),
50         validators=[InputRequired()],
51     )
52 
53     ctf_logo = FileField(
54         _l("Logo"),
55         description=_l(
56             "Logo to use for the website instead of a CTF name. Used as the home page button. Optional."
57         ),
58     )
59     ctf_banner = FileField(
60         _l("Banner"), description=_l("Banner to use for the homepage. Optional.")
61     )
62     ctf_small_icon = FileField(
63         _l("Small Icon"),
64         description=_l(
65             "favicon used in user's browsers. Only PNGs accepted. Must be 32x32px. Optional."
66         ),
67     )
68     ctf_theme = SelectField(
69         _l("Theme"),
70         description=_l("CTFd Theme to use. Can be changed later."),
71         choices=list(zip(get_themes(), get_themes())),
72         default=DEFAULT_THEME,
73         validators=[InputRequired()],
74     )
75     theme_color = HiddenField(
76         _l("Theme Color"),
77         description=_l(
78             "Color used by theme to control aesthetics. Requires theme support. Optional."
79         ),
80     )
81 
82     start = StringField(
83         _l("Start Time"),
84         description=_l("Time when your CTF is scheduled to start. Optional."),
85     )
86     end = StringField(
87         _l("End Time"),
88         description=_l("Time when your CTF is scheduled to end. Optional."),
89     )
90     submit = SubmitField(_l("Finish"))
91
```
--- 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/CTFd/forms/setup.py b/CTFd/forms/setup.py
--- a/CTFd/forms/setup.py
+++ b/CTFd/forms/setup.py
@@ -11,7 +11,6 @@
 from wtforms.fields.html5 import EmailField
 from wtforms.validators import InputRequired
 
-from CTFd.constants.themes import DEFAULT_THEME
 from CTFd.forms import BaseForm
 from CTFd.forms.fields import SubmitField
 from CTFd.utils.config import get_themes
@@ -69,7 +68,8 @@
         _l("Theme"),
         description=_l("CTFd Theme to use. Can be changed later."),
         choices=list(zip(get_themes(), get_themes())),
-        default=DEFAULT_THEME,
+        ## TODO: Replace back to DEFAULT_THEME (aka core) in CTFd 4.0
+        default="core-beta",
         validators=[InputRequired()],
     )
     theme_color = HiddenField(

{"golden_diff": "diff --git a/CTFd/forms/setup.py b/CTFd/forms/setup.py\n--- a/CTFd/forms/setup.py\n+++ b/CTFd/forms/setup.py\n@@ -11,7 +11,6 @@\n from wtforms.fields.html5 import EmailField\n from wtforms.validators import InputRequired\n \n-from CTFd.constants.themes import DEFAULT_THEME\n from CTFd.forms import BaseForm\n from CTFd.forms.fields import SubmitField\n from CTFd.utils.config import get_themes\n@@ -69,7 +68,8 @@\n         _l(\"Theme\"),\n         description=_l(\"CTFd Theme to use. Can be changed later.\"),\n         choices=list(zip(get_themes(), get_themes())),\n-        default=DEFAULT_THEME,\n+        ## TODO: Replace back to DEFAULT_THEME (aka core) in CTFd 4.0\n+        default=\"core-beta\",\n         validators=[InputRequired()],\n     )\n     theme_color = HiddenField(\n", "issue": "Make core-beta the default choice during setup\nThe core theme is effectively deprecated for us so it doesn't make much sense to allow for new core theme installs after 3.6.\n", "before_files": [{"content": "from flask_babel import lazy_gettext as _l\nfrom wtforms import (\n    FileField,\n    HiddenField,\n    PasswordField,\n    RadioField,\n    SelectField,\n    StringField,\n    TextAreaField,\n)\nfrom wtforms.fields.html5 import EmailField\nfrom wtforms.validators import InputRequired\n\nfrom CTFd.constants.themes import DEFAULT_THEME\nfrom CTFd.forms import BaseForm\nfrom CTFd.forms.fields import SubmitField\nfrom CTFd.utils.config import get_themes\n\n\nclass SetupForm(BaseForm):\n    ctf_name = StringField(\n        _l(\"Event Name\"), description=_l(\"The name of your CTF event/workshop\")\n    )\n    ctf_description = TextAreaField(\n        _l(\"Event Description\"), description=_l(\"Description for the CTF\")\n    )\n    user_mode = RadioField(\n        _l(\"User Mode\"),\n        choices=[(\"teams\", _l(\"Team Mode\")), (\"users\", _l(\"User Mode\"))],\n        default=\"teams\",\n        description=_l(\n            \"Controls whether users join together in teams to play (Team Mode) or play as themselves (User Mode)\"\n        ),\n        validators=[InputRequired()],\n    )\n\n    name = StringField(\n        _l(\"Admin Username\"),\n        description=_l(\"Your username for the administration account\"),\n        validators=[InputRequired()],\n    )\n    email = EmailField(\n        _l(\"Admin Email\"),\n        description=_l(\"Your email address for the administration account\"),\n        validators=[InputRequired()],\n    )\n    password = PasswordField(\n        _l(\"Admin Password\"),\n        description=_l(\"Your password for the administration account\"),\n        validators=[InputRequired()],\n    )\n\n    ctf_logo = FileField(\n        _l(\"Logo\"),\n        description=_l(\n            \"Logo to use for the website instead of a CTF name. Used as the home page button. Optional.\"\n        ),\n    )\n    ctf_banner = FileField(\n        _l(\"Banner\"), description=_l(\"Banner to use for the homepage. Optional.\")\n    )\n    ctf_small_icon = FileField(\n        _l(\"Small Icon\"),\n        description=_l(\n            \"favicon used in user's browsers. Only PNGs accepted. Must be 32x32px. Optional.\"\n        ),\n    )\n    ctf_theme = SelectField(\n        _l(\"Theme\"),\n        description=_l(\"CTFd Theme to use. Can be changed later.\"),\n        choices=list(zip(get_themes(), get_themes())),\n        default=DEFAULT_THEME,\n        validators=[InputRequired()],\n    )\n    theme_color = HiddenField(\n        _l(\"Theme Color\"),\n        description=_l(\n            \"Color used by theme to control aesthetics. Requires theme support. Optional.\"\n        ),\n    )\n\n    start = StringField(\n        _l(\"Start Time\"),\n        description=_l(\"Time when your CTF is scheduled to start. Optional.\"),\n    )\n    end = StringField(\n        _l(\"End Time\"),\n        description=_l(\"Time when your CTF is scheduled to end. Optional.\"),\n    )\n    submit = SubmitField(_l(\"Finish\"))\n", "path": "CTFd/forms/setup.py"}], "after_files": [{"content": "from flask_babel import lazy_gettext as _l\nfrom wtforms import (\n    FileField,\n    HiddenField,\n    PasswordField,\n    RadioField,\n    SelectField,\n    StringField,\n    TextAreaField,\n)\nfrom wtforms.fields.html5 import EmailField\nfrom wtforms.validators import InputRequired\n\nfrom CTFd.forms import BaseForm\nfrom CTFd.forms.fields import SubmitField\nfrom CTFd.utils.config import get_themes\n\n\nclass SetupForm(BaseForm):\n    ctf_name = StringField(\n        _l(\"Event Name\"), description=_l(\"The name of your CTF event/workshop\")\n    )\n    ctf_description = TextAreaField(\n        _l(\"Event Description\"), description=_l(\"Description for the CTF\")\n    )\n    user_mode = RadioField(\n        _l(\"User Mode\"),\n        choices=[(\"teams\", _l(\"Team Mode\")), (\"users\", _l(\"User Mode\"))],\n        default=\"teams\",\n        description=_l(\n            \"Controls whether users join together in teams to play (Team Mode) or play as themselves (User Mode)\"\n        ),\n        validators=[InputRequired()],\n    )\n\n    name = StringField(\n        _l(\"Admin Username\"),\n        description=_l(\"Your username for the administration account\"),\n        validators=[InputRequired()],\n    )\n    email = EmailField(\n        _l(\"Admin Email\"),\n        description=_l(\"Your email address for the administration account\"),\n        validators=[InputRequired()],\n    )\n    password = PasswordField(\n        _l(\"Admin Password\"),\n        description=_l(\"Your password for the administration account\"),\n        validators=[InputRequired()],\n    )\n\n    ctf_logo = FileField(\n        _l(\"Logo\"),\n        description=_l(\n            \"Logo to use for the website instead of a CTF name. Used as the home page button. Optional.\"\n        ),\n    )\n    ctf_banner = FileField(\n        _l(\"Banner\"), description=_l(\"Banner to use for the homepage. Optional.\")\n    )\n    ctf_small_icon = FileField(\n        _l(\"Small Icon\"),\n        description=_l(\n            \"favicon used in user's browsers. Only PNGs accepted. Must be 32x32px. Optional.\"\n        ),\n    )\n    ctf_theme = SelectField(\n        _l(\"Theme\"),\n        description=_l(\"CTFd Theme to use. Can be changed later.\"),\n        choices=list(zip(get_themes(), get_themes())),\n        ## TODO: Replace back to DEFAULT_THEME (aka core) in CTFd 4.0\n        default=\"core-beta\",\n        validators=[InputRequired()],\n    )\n    theme_color = HiddenField(\n        _l(\"Theme Color\"),\n        description=_l(\n            \"Color used by theme to control aesthetics. Requires theme support. Optional.\"\n        ),\n    )\n\n    start = StringField(\n        _l(\"Start Time\"),\n        description=_l(\"Time when your CTF is scheduled to start. Optional.\"),\n    )\n    end = StringField(\n        _l(\"End Time\"),\n        description=_l(\"Time when your CTF is scheduled to end. Optional.\"),\n    )\n    submit = SubmitField(_l(\"Finish\"))\n", "path": "CTFd/forms/setup.py"}]}