We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
exact issue name should be listed for each issue type in the Datalab Issue Type Guide
Otherwise it's hard to know how to run an audit for this issue type (eg. data valuation say).

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `docs/source/conf.py`
Content:
```
1 # Configuration file for the Sphinx documentation builder.
2 #
3 # This file only contains a selection of the most common options. For a full
4 # list see the documentation:
5 # https://www.sphinx-doc.org/en/master/usage/configuration.html
6 
7 # -- Path setup --------------------------------------------------------------
8 
9 # If extensions (or modules to document with autodoc) are in another directory,
10 # add these directories to sys.path here. If the directory is relative to the
11 # documentation root, use os.path.abspath to make it absolute, like shown here.
12 
13 import os
14 import sys
15 import datetime
16 import shutil
17 
18 sys.path.insert(0, os.path.abspath("../../cleanlab"))
19 
20 # doctest setup
21 # If extensions (or modules to document with autodoc) are in another directory,
22 # add these directories to sys.path here.
23 import pathlib
24 
25 sys.path.insert(0, pathlib.Path(__file__).parents[2].resolve().as_posix())
26 
27 # Open Graph extension
28 ogp_site_url = "https://docs.cleanlab.ai"
29 ogp_image = (
30     "https://raw.githubusercontent.com/cleanlab/assets/master/cleanlab/clos-preview-card.png"
31 )
32 
33 
34 # -- Project information -----------------------------------------------------
35 
36 project = "cleanlab"
37 copyright = f"{datetime.datetime.now().year}, Cleanlab Inc."
38 author = "Cleanlab Inc."
39 
40 # -- General configuration ---------------------------------------------------
41 
42 # Add any Sphinx extension module names here, as strings. They can be
43 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
44 # ones.
45 extensions = [
46     "sphinx.ext.napoleon",
47     "nbsphinx",
48     "sphinx.ext.autodoc",
49     "autodocsumm",
50     "sphinx.ext.viewcode",
51     "sphinx.ext.todo",
52     "sphinx_tabs.tabs",
53     "sphinx_multiversion",
54     "sphinx_copybutton",
55     "sphinxcontrib.katex",
56     "sphinxcontrib.gtagjs",
57     "sphinx_autodoc_typehints",
58     "sphinx.ext.doctest",
59     "sphinxext.opengraph",
60 ]
61 
62 numpy_show_class_members = True
63 
64 # Don't add .txt suffix to source files:
65 html_sourcelink_suffix = ""
66 
67 # Add any paths that contain templates here, relative to this directory.
68 templates_path = ["_templates"]
69 
70 # List of patterns, relative to source directory, that match files and
71 # directories to ignore when looking for source files.
72 # This pattern also affects html_static_path and html_extra_path.
73 exclude_patterns = ["_build"]
74 
75 autosummary_generate = True
76 
77 # set the default role of `name` to make cross references
78 default_role = "py:obj"
79 
80 # -- Options for apidoc extension ----------------------------------------------
81 
82 # apidoc_module_dir = "cleanlab/cleanlab"
83 
84 # -- Options for todo extension ----------------------------------------------
85 
86 # If true, `todo` and `todoList` produce output, else they produce nothing.
87 todo_include_todos = True
88 
89 
90 # -- Options for Napoleon extension -------------------------------------------
91 
92 napoleon_google_docstring = False
93 napoleon_numpy_docstring = True
94 napoleon_include_init_with_doc = False
95 napoleon_include_private_with_doc = False
96 napoleon_include_special_with_doc = True
97 napoleon_use_admonition_for_examples = False
98 napoleon_use_admonition_for_notes = False
99 napoleon_use_admonition_for_references = False
100 napoleon_use_ivar = False
101 napoleon_use_param = True
102 napoleon_use_rtype = False
103 napoleon_preprocess_types = True
104 napoleon_type_aliases = None
105 napoleon_attr_annotations = True
106 
107 # -- Options for autodoc extension -------------------------------------------
108 
109 # This value selects what content will be inserted into the main body of an autoclass
110 # directive
111 #
112 # http://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-autoclass
113 autoclass_content = "class"
114 
115 
116 # Default options to an ..autoXXX directive.
117 autodoc_default_options = {
118     "autosummary": True,
119     "members": None,
120     "inherited-members": None,
121     "show-inheritance": None,
122     "special-members": "__call__",
123 }
124 
125 # Subclasses should show parent classes docstrings if they don't override them.
126 autodoc_inherit_docstrings = True
127 
128 # Order functions displayed by the order of source code
129 autodoc_member_order = "bysource"
130 
131 # -- Options for copybutton extension -----------------------------------------
132 
133 # Strip input prompts when copying code blocks. Supports:
134 # - Python Repl + continuation prompt
135 # - Bash prompt
136 # - ipython + continuation prompt
137 # - jupyter-console + continuation prompt
138 copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
139 copybutton_prompt_is_regexp = True
140 
141 # -- Options for katex extension -------------------------------------------
142 
143 if os.getenv("CI") or shutil.which("katex") is not None:
144     # requires that the machine have `katex` installed: `npm install -g katex`
145     katex_prerender = True
146 
147 # -- Options for gtagjs extension -------------------------------------------
148 
149 gtagjs_ids = ["G-EV8RVEFX82"]
150 
151 # -- Variables Setting ---------------------------------------------------
152 
153 # Determine doc site URL (DOCS_SITE_URL)
154 # Check if it's running in production repo
155 if os.getenv("GITHUB_REPOSITORY") == "cleanlab/cleanlab":
156     DOCS_SITE_URL = "/"
157 else:
158     DOCS_SITE_URL = "/cleanlab-docs/"
159 
160 gh_env_file = os.getenv("GITHUB_ENV")
161 if gh_env_file is not None:
162     with open(gh_env_file, "a") as f:
163         f.write(f"\nDOCS_SITE_URL={DOCS_SITE_URL}")  # Set to Environment Var
164 
165 GITHUB_REPOSITORY_OWNER = os.getenv("GITHUB_REPOSITORY_OWNER") or "cleanlab"
166 GITHUB_REF_NAME = os.getenv("GITHUB_REF_NAME") or "master"
167 
168 # Pass additional variables to Jinja templates
169 html_context = {
170     "DOCS_SITE_URL": DOCS_SITE_URL,
171     # Add new tags to RELEASE_VERSIONS before release
172     # fmt: off
173     "RELEASE_VERSIONS": [
174         "v2.6.0",
175         "v2.5.0",
176         "v2.4.0",
177         "v2.3.1",
178         "v2.3.0",
179         "v2.2.0",
180         "v2.1.0",
181         "v2.0.0",
182         "v1.0.1",
183     ],
184     # fmt: on
185 }
186 
187 # -- nbsphinx Configuration ---------------------------------------------------
188 
189 # This is processed by Jinja2 and inserted before each notebook
190 nbsphinx_prolog = (
191     """
192 {% set docname = env.doc2path(env.docname, base=None) %}
193 
194 .. raw:: html
195 
196     <style>
197         .nbinput .prompt,
198         .nboutput .prompt {
199             display: none;
200         }
201 
202         .output_area {
203             max-height: 300px;
204             overflow: auto;
205         }
206 
207         .dataframe {
208             background: #D7D7D7;
209         }
210 
211         th {
212             color:black;
213         }
214     </style>
215 
216     <script type="text/javascript">
217         window.addEventListener('load', () => {
218             const h1_element = document.getElementsByTagName("h1");
219             h1_element[0].insertAdjacentHTML("afterend", `
220             <p>
221                 <a style="background-color:white;color:black;padding:4px 12px;text-decoration:none;display:inline-block;border-radius:8px;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19)" href="https://colab.research.google.com/github/"""
222     + GITHUB_REPOSITORY_OWNER
223     + """/cleanlab-docs/blob/master/"""
224     + GITHUB_REF_NAME
225     + """/{{ docname|e }}" target="_blank">
226                 <img src="https://colab.research.google.com/img/colab_favicon_256px.png" alt="" style="width:40px;height:40px;vertical-align:middle">
227                 <span style="vertical-align:middle">Run in Google Colab</span>
228                 </a>
229             </p>
230             `);
231         })
232 
233     </script>
234 """
235 )
236 
237 # Change this to "always" before running in the doc's CI/CD server
238 if os.getenv("CI"):
239     nbsphinx_execute = "always"
240 if os.getenv("SKIP_NOTEBOOKS", "0") != "0":
241     nbsphinx_execute = "never"
242 
243 # -- Options for HTML output -------------------------------------------------
244 
245 # The theme to use for HTML and HTML Help pages.  See the documentation for
246 # a list of builtin themes.
247 #
248 html_theme = "furo"
249 html_favicon = "https://raw.githubusercontent.com/cleanlab/assets/a4483476d449f2f05a4c7cde329e72358099cc07/cleanlab/cleanlab_favicon.svg"
250 html_title = "cleanlab"
251 html_logo = (
252     "https://raw.githubusercontent.com/cleanlab/assets/master/cleanlab/cleanlab_logo_only.png"
253 )
254 html_theme_options = {
255     "footer_icons": [
256         {
257             "name": "GitHub",
258             "url": "https://github.com/cleanlab/cleanlab",
259             "html": """
260                 <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
261                     <path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
262                 </svg>
263             """,
264             "class": "",
265         },
266     ],
267 }
268 
269 # Add any paths that contain custom static files (such as style sheets) here,
270 # relative to this directory. They are copied after the builtin static files,
271 # so a file named "default.css" will overwrite the builtin "default.css".
272 html_static_path = ["_static"]
273 
274 html_css_files = ["css/custom.css"]
275 
276 html_sidebars = {
277     "**": [
278         "brand.html",
279         "sidebar/search.html",
280         "sidebar/scroll-start.html",
281         "sidebar/navigation.html",
282         "sidebar/ethical-ads.html",
283         "versioning.html",
284         "sidebar/scroll-end.html",
285     ],
286 }
287
```
--- 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/docs/source/conf.py b/docs/source/conf.py
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -54,6 +54,7 @@
     "sphinx_copybutton",
     "sphinxcontrib.katex",
     "sphinxcontrib.gtagjs",
+    "sphinx_jinja",
     "sphinx_autodoc_typehints",
     "sphinx.ext.doctest",
     "sphinxext.opengraph",

{"golden_diff": "diff --git a/docs/source/conf.py b/docs/source/conf.py\n--- a/docs/source/conf.py\n+++ b/docs/source/conf.py\n@@ -54,6 +54,7 @@\n     \"sphinx_copybutton\",\n     \"sphinxcontrib.katex\",\n     \"sphinxcontrib.gtagjs\",\n+    \"sphinx_jinja\",\n     \"sphinx_autodoc_typehints\",\n     \"sphinx.ext.doctest\",\n     \"sphinxext.opengraph\",\n", "issue": "exact issue name should be listed for each issue type in the Datalab Issue Type Guide\nOtherwise it's hard to know how to run an audit for this issue type (eg. data valuation say).\n", "before_files": [{"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup --------------------------------------------------------------\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n\nimport os\nimport sys\nimport datetime\nimport shutil\n\nsys.path.insert(0, os.path.abspath(\"../../cleanlab\"))\n\n# doctest setup\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here.\nimport pathlib\n\nsys.path.insert(0, pathlib.Path(__file__).parents[2].resolve().as_posix())\n\n# Open Graph extension\nogp_site_url = \"https://docs.cleanlab.ai\"\nogp_image = (\n    \"https://raw.githubusercontent.com/cleanlab/assets/master/cleanlab/clos-preview-card.png\"\n)\n\n\n# -- Project information -----------------------------------------------------\n\nproject = \"cleanlab\"\ncopyright = f\"{datetime.datetime.now().year}, Cleanlab Inc.\"\nauthor = \"Cleanlab Inc.\"\n\n# -- General configuration ---------------------------------------------------\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = [\n    \"sphinx.ext.napoleon\",\n    \"nbsphinx\",\n    \"sphinx.ext.autodoc\",\n    \"autodocsumm\",\n    \"sphinx.ext.viewcode\",\n    \"sphinx.ext.todo\",\n    \"sphinx_tabs.tabs\",\n    \"sphinx_multiversion\",\n    \"sphinx_copybutton\",\n    \"sphinxcontrib.katex\",\n    \"sphinxcontrib.gtagjs\",\n    \"sphinx_autodoc_typehints\",\n    \"sphinx.ext.doctest\",\n    \"sphinxext.opengraph\",\n]\n\nnumpy_show_class_members = True\n\n# Don't add .txt suffix to source files:\nhtml_sourcelink_suffix = \"\"\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = [\"_templates\"]\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This pattern also affects html_static_path and html_extra_path.\nexclude_patterns = [\"_build\"]\n\nautosummary_generate = True\n\n# set the default role of `name` to make cross references\ndefault_role = \"py:obj\"\n\n# -- Options for apidoc extension ----------------------------------------------\n\n# apidoc_module_dir = \"cleanlab/cleanlab\"\n\n# -- Options for todo extension ----------------------------------------------\n\n# If true, `todo` and `todoList` produce output, else they produce nothing.\ntodo_include_todos = True\n\n\n# -- Options for Napoleon extension -------------------------------------------\n\nnapoleon_google_docstring = False\nnapoleon_numpy_docstring = True\nnapoleon_include_init_with_doc = False\nnapoleon_include_private_with_doc = False\nnapoleon_include_special_with_doc = True\nnapoleon_use_admonition_for_examples = False\nnapoleon_use_admonition_for_notes = False\nnapoleon_use_admonition_for_references = False\nnapoleon_use_ivar = False\nnapoleon_use_param = True\nnapoleon_use_rtype = False\nnapoleon_preprocess_types = True\nnapoleon_type_aliases = None\nnapoleon_attr_annotations = True\n\n# -- Options for autodoc extension -------------------------------------------\n\n# This value selects what content will be inserted into the main body of an autoclass\n# directive\n#\n# http://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-autoclass\nautoclass_content = \"class\"\n\n\n# Default options to an ..autoXXX directive.\nautodoc_default_options = {\n    \"autosummary\": True,\n    \"members\": None,\n    \"inherited-members\": None,\n    \"show-inheritance\": None,\n    \"special-members\": \"__call__\",\n}\n\n# Subclasses should show parent classes docstrings if they don't override them.\nautodoc_inherit_docstrings = True\n\n# Order functions displayed by the order of source code\nautodoc_member_order = \"bysource\"\n\n# -- Options for copybutton extension -----------------------------------------\n\n# Strip input prompts when copying code blocks. Supports:\n# - Python Repl + continuation prompt\n# - Bash prompt\n# - ipython + continuation prompt\n# - jupyter-console + continuation prompt\ncopybutton_prompt_text = r\">>> |\\.\\.\\. |\\$ |In \\[\\d*\\]: | {2,5}\\.\\.\\.: | {5,8}: \"\ncopybutton_prompt_is_regexp = True\n\n# -- Options for katex extension -------------------------------------------\n\nif os.getenv(\"CI\") or shutil.which(\"katex\") is not None:\n    # requires that the machine have `katex` installed: `npm install -g katex`\n    katex_prerender = True\n\n# -- Options for gtagjs extension -------------------------------------------\n\ngtagjs_ids = [\"G-EV8RVEFX82\"]\n\n# -- Variables Setting ---------------------------------------------------\n\n# Determine doc site URL (DOCS_SITE_URL)\n# Check if it's running in production repo\nif os.getenv(\"GITHUB_REPOSITORY\") == \"cleanlab/cleanlab\":\n    DOCS_SITE_URL = \"/\"\nelse:\n    DOCS_SITE_URL = \"/cleanlab-docs/\"\n\ngh_env_file = os.getenv(\"GITHUB_ENV\")\nif gh_env_file is not None:\n    with open(gh_env_file, \"a\") as f:\n        f.write(f\"\\nDOCS_SITE_URL={DOCS_SITE_URL}\")  # Set to Environment Var\n\nGITHUB_REPOSITORY_OWNER = os.getenv(\"GITHUB_REPOSITORY_OWNER\") or \"cleanlab\"\nGITHUB_REF_NAME = os.getenv(\"GITHUB_REF_NAME\") or \"master\"\n\n# Pass additional variables to Jinja templates\nhtml_context = {\n    \"DOCS_SITE_URL\": DOCS_SITE_URL,\n    # Add new tags to RELEASE_VERSIONS before release\n    # fmt: off\n    \"RELEASE_VERSIONS\": [\n        \"v2.6.0\",\n        \"v2.5.0\",\n        \"v2.4.0\",\n        \"v2.3.1\",\n        \"v2.3.0\",\n        \"v2.2.0\",\n        \"v2.1.0\",\n        \"v2.0.0\",\n        \"v1.0.1\",\n    ],\n    # fmt: on\n}\n\n# -- nbsphinx Configuration ---------------------------------------------------\n\n# This is processed by Jinja2 and inserted before each notebook\nnbsphinx_prolog = (\n    \"\"\"\n{% set docname = env.doc2path(env.docname, base=None) %}\n\n.. raw:: html\n\n    <style>\n        .nbinput .prompt,\n        .nboutput .prompt {\n            display: none;\n        }\n\n        .output_area {\n            max-height: 300px;\n            overflow: auto;\n        }\n\n        .dataframe {\n            background: #D7D7D7;\n        }\n\n        th {\n            color:black;\n        }\n    </style>\n\n    <script type=\"text/javascript\">\n        window.addEventListener('load', () => {\n            const h1_element = document.getElementsByTagName(\"h1\");\n            h1_element[0].insertAdjacentHTML(\"afterend\", `\n            <p>\n                <a style=\"background-color:white;color:black;padding:4px 12px;text-decoration:none;display:inline-block;border-radius:8px;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19)\" href=\"https://colab.research.google.com/github/\"\"\"\n    + GITHUB_REPOSITORY_OWNER\n    + \"\"\"/cleanlab-docs/blob/master/\"\"\"\n    + GITHUB_REF_NAME\n    + \"\"\"/{{ docname|e }}\" target=\"_blank\">\n                <img src=\"https://colab.research.google.com/img/colab_favicon_256px.png\" alt=\"\" style=\"width:40px;height:40px;vertical-align:middle\">\n                <span style=\"vertical-align:middle\">Run in Google Colab</span>\n                </a>\n            </p>\n            `);\n        })\n\n    </script>\n\"\"\"\n)\n\n# Change this to \"always\" before running in the doc's CI/CD server\nif os.getenv(\"CI\"):\n    nbsphinx_execute = \"always\"\nif os.getenv(\"SKIP_NOTEBOOKS\", \"0\") != \"0\":\n    nbsphinx_execute = \"never\"\n\n# -- Options for HTML output -------------------------------------------------\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\n#\nhtml_theme = \"furo\"\nhtml_favicon = \"https://raw.githubusercontent.com/cleanlab/assets/a4483476d449f2f05a4c7cde329e72358099cc07/cleanlab/cleanlab_favicon.svg\"\nhtml_title = \"cleanlab\"\nhtml_logo = (\n    \"https://raw.githubusercontent.com/cleanlab/assets/master/cleanlab/cleanlab_logo_only.png\"\n)\nhtml_theme_options = {\n    \"footer_icons\": [\n        {\n            \"name\": \"GitHub\",\n            \"url\": \"https://github.com/cleanlab/cleanlab\",\n            \"html\": \"\"\"\n                <svg stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" viewBox=\"0 0 16 16\">\n                    <path fill-rule=\"evenodd\" d=\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z\"></path>\n                </svg>\n            \"\"\",\n            \"class\": \"\",\n        },\n    ],\n}\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = [\"_static\"]\n\nhtml_css_files = [\"css/custom.css\"]\n\nhtml_sidebars = {\n    \"**\": [\n        \"brand.html\",\n        \"sidebar/search.html\",\n        \"sidebar/scroll-start.html\",\n        \"sidebar/navigation.html\",\n        \"sidebar/ethical-ads.html\",\n        \"versioning.html\",\n        \"sidebar/scroll-end.html\",\n    ],\n}\n", "path": "docs/source/conf.py"}], "after_files": [{"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup --------------------------------------------------------------\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n\nimport os\nimport sys\nimport datetime\nimport shutil\n\nsys.path.insert(0, os.path.abspath(\"../../cleanlab\"))\n\n# doctest setup\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here.\nimport pathlib\n\nsys.path.insert(0, pathlib.Path(__file__).parents[2].resolve().as_posix())\n\n# Open Graph extension\nogp_site_url = \"https://docs.cleanlab.ai\"\nogp_image = (\n    \"https://raw.githubusercontent.com/cleanlab/assets/master/cleanlab/clos-preview-card.png\"\n)\n\n\n# -- Project information -----------------------------------------------------\n\nproject = \"cleanlab\"\ncopyright = f\"{datetime.datetime.now().year}, Cleanlab Inc.\"\nauthor = \"Cleanlab Inc.\"\n\n# -- General configuration ---------------------------------------------------\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = [\n    \"sphinx.ext.napoleon\",\n    \"nbsphinx\",\n    \"sphinx.ext.autodoc\",\n    \"autodocsumm\",\n    \"sphinx.ext.viewcode\",\n    \"sphinx.ext.todo\",\n    \"sphinx_tabs.tabs\",\n    \"sphinx_multiversion\",\n    \"sphinx_copybutton\",\n    \"sphinxcontrib.katex\",\n    \"sphinxcontrib.gtagjs\",\n    \"sphinx_jinja\",\n    \"sphinx_autodoc_typehints\",\n    \"sphinx.ext.doctest\",\n    \"sphinxext.opengraph\",\n]\n\nnumpy_show_class_members = True\n\n# Don't add .txt suffix to source files:\nhtml_sourcelink_suffix = \"\"\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = [\"_templates\"]\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This pattern also affects html_static_path and html_extra_path.\nexclude_patterns = [\"_build\"]\n\nautosummary_generate = True\n\n# set the default role of `name` to make cross references\ndefault_role = \"py:obj\"\n\n# -- Options for apidoc extension ----------------------------------------------\n\n# apidoc_module_dir = \"cleanlab/cleanlab\"\n\n# -- Options for todo extension ----------------------------------------------\n\n# If true, `todo` and `todoList` produce output, else they produce nothing.\ntodo_include_todos = True\n\n\n# -- Options for Napoleon extension -------------------------------------------\n\nnapoleon_google_docstring = False\nnapoleon_numpy_docstring = True\nnapoleon_include_init_with_doc = False\nnapoleon_include_private_with_doc = False\nnapoleon_include_special_with_doc = True\nnapoleon_use_admonition_for_examples = False\nnapoleon_use_admonition_for_notes = False\nnapoleon_use_admonition_for_references = False\nnapoleon_use_ivar = False\nnapoleon_use_param = True\nnapoleon_use_rtype = False\nnapoleon_preprocess_types = True\nnapoleon_type_aliases = None\nnapoleon_attr_annotations = True\n\n# -- Options for autodoc extension -------------------------------------------\n\n# This value selects what content will be inserted into the main body of an autoclass\n# directive\n#\n# http://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-autoclass\nautoclass_content = \"class\"\n\n\n# Default options to an ..autoXXX directive.\nautodoc_default_options = {\n    \"autosummary\": True,\n    \"members\": None,\n    \"inherited-members\": None,\n    \"show-inheritance\": None,\n    \"special-members\": \"__call__\",\n}\n\n# Subclasses should show parent classes docstrings if they don't override them.\nautodoc_inherit_docstrings = True\n\n# Order functions displayed by the order of source code\nautodoc_member_order = \"bysource\"\n\n# -- Options for copybutton extension -----------------------------------------\n\n# Strip input prompts when copying code blocks. Supports:\n# - Python Repl + continuation prompt\n# - Bash prompt\n# - ipython + continuation prompt\n# - jupyter-console + continuation prompt\ncopybutton_prompt_text = r\">>> |\\.\\.\\. |\\$ |In \\[\\d*\\]: | {2,5}\\.\\.\\.: | {5,8}: \"\ncopybutton_prompt_is_regexp = True\n\n# -- Options for katex extension -------------------------------------------\n\nif os.getenv(\"CI\") or shutil.which(\"katex\") is not None:\n    # requires that the machine have `katex` installed: `npm install -g katex`\n    katex_prerender = True\n\n# -- Options for gtagjs extension -------------------------------------------\n\ngtagjs_ids = [\"G-EV8RVEFX82\"]\n\n# -- Variables Setting ---------------------------------------------------\n\n# Determine doc site URL (DOCS_SITE_URL)\n# Check if it's running in production repo\nif os.getenv(\"GITHUB_REPOSITORY\") == \"cleanlab/cleanlab\":\n    DOCS_SITE_URL = \"/\"\nelse:\n    DOCS_SITE_URL = \"/cleanlab-docs/\"\n\ngh_env_file = os.getenv(\"GITHUB_ENV\")\nif gh_env_file is not None:\n    with open(gh_env_file, \"a\") as f:\n        f.write(f\"\\nDOCS_SITE_URL={DOCS_SITE_URL}\")  # Set to Environment Var\n\nGITHUB_REPOSITORY_OWNER = os.getenv(\"GITHUB_REPOSITORY_OWNER\") or \"cleanlab\"\nGITHUB_REF_NAME = os.getenv(\"GITHUB_REF_NAME\") or \"master\"\n\n# Pass additional variables to Jinja templates\nhtml_context = {\n    \"DOCS_SITE_URL\": DOCS_SITE_URL,\n    # Add new tags to RELEASE_VERSIONS before release\n    # fmt: off\n    \"RELEASE_VERSIONS\": [\n        \"v2.6.0\",\n        \"v2.5.0\",\n        \"v2.4.0\",\n        \"v2.3.1\",\n        \"v2.3.0\",\n        \"v2.2.0\",\n        \"v2.1.0\",\n        \"v2.0.0\",\n        \"v1.0.1\",\n    ],\n    # fmt: on\n}\n\n# -- nbsphinx Configuration ---------------------------------------------------\n\n# This is processed by Jinja2 and inserted before each notebook\nnbsphinx_prolog = (\n    \"\"\"\n{% set docname = env.doc2path(env.docname, base=None) %}\n\n.. raw:: html\n\n    <style>\n        .nbinput .prompt,\n        .nboutput .prompt {\n            display: none;\n        }\n\n        .output_area {\n            max-height: 300px;\n            overflow: auto;\n        }\n\n        .dataframe {\n            background: #D7D7D7;\n        }\n\n        th {\n            color:black;\n        }\n    </style>\n\n    <script type=\"text/javascript\">\n        window.addEventListener('load', () => {\n            const h1_element = document.getElementsByTagName(\"h1\");\n            h1_element[0].insertAdjacentHTML(\"afterend\", `\n            <p>\n                <a style=\"background-color:white;color:black;padding:4px 12px;text-decoration:none;display:inline-block;border-radius:8px;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19)\" href=\"https://colab.research.google.com/github/\"\"\"\n    + GITHUB_REPOSITORY_OWNER\n    + \"\"\"/cleanlab-docs/blob/master/\"\"\"\n    + GITHUB_REF_NAME\n    + \"\"\"/{{ docname|e }}\" target=\"_blank\">\n                <img src=\"https://colab.research.google.com/img/colab_favicon_256px.png\" alt=\"\" style=\"width:40px;height:40px;vertical-align:middle\">\n                <span style=\"vertical-align:middle\">Run in Google Colab</span>\n                </a>\n            </p>\n            `);\n        })\n\n    </script>\n\"\"\"\n)\n\n# Change this to \"always\" before running in the doc's CI/CD server\nif os.getenv(\"CI\"):\n    nbsphinx_execute = \"always\"\nif os.getenv(\"SKIP_NOTEBOOKS\", \"0\") != \"0\":\n    nbsphinx_execute = \"never\"\n\n# -- Options for HTML output -------------------------------------------------\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\n#\nhtml_theme = \"furo\"\nhtml_favicon = \"https://raw.githubusercontent.com/cleanlab/assets/a4483476d449f2f05a4c7cde329e72358099cc07/cleanlab/cleanlab_favicon.svg\"\nhtml_title = \"cleanlab\"\nhtml_logo = (\n    \"https://raw.githubusercontent.com/cleanlab/assets/master/cleanlab/cleanlab_logo_only.png\"\n)\nhtml_theme_options = {\n    \"footer_icons\": [\n        {\n            \"name\": \"GitHub\",\n            \"url\": \"https://github.com/cleanlab/cleanlab\",\n            \"html\": \"\"\"\n                <svg stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" viewBox=\"0 0 16 16\">\n                    <path fill-rule=\"evenodd\" d=\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z\"></path>\n                </svg>\n            \"\"\",\n            \"class\": \"\",\n        },\n    ],\n}\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = [\"_static\"]\n\nhtml_css_files = [\"css/custom.css\"]\n\nhtml_sidebars = {\n    \"**\": [\n        \"brand.html\",\n        \"sidebar/search.html\",\n        \"sidebar/scroll-start.html\",\n        \"sidebar/navigation.html\",\n        \"sidebar/ethical-ads.html\",\n        \"versioning.html\",\n        \"sidebar/scroll-end.html\",\n    ],\n}\n", "path": "docs/source/conf.py"}]}