diff --git a/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/INSTALLER b/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..a1b589e38a32041e49332e5e81c2d363dc418d68 --- /dev/null +++ b/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/LICENSE b/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..104eebf5a3002fccdaceef3a4cb936173c1c2035 --- /dev/null +++ b/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2018 Alex Grönholm + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/entry_points.txt b/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/entry_points.txt new file mode 100644 index 0000000000000000000000000000000000000000..44dd9bdc3039122cc98014c1439ca254313fd014 --- /dev/null +++ b/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/entry_points.txt @@ -0,0 +1,2 @@ +[pytest11] +anyio = anyio.pytest_plugin diff --git a/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/top_level.txt b/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..c77c069ecc9b7f8b1f97dbcfec905725db0253a8 --- /dev/null +++ b/evalkit_cambrian/lib/python3.10/site-packages/anyio-4.8.0.dist-info/top_level.txt @@ -0,0 +1 @@ +anyio diff --git a/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/__init__.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9a4ec4baa28cb5815e663dfa37457c2080f541ee Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/__init__.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/delayed_mul_tensor.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/delayed_mul_tensor.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1c0bec13df120c611b433bc8cc7470c70fee8be1 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/delayed_mul_tensor.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/reference.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/reference.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a48d3bc719cb6021684f33095340f9b0ea87dbcc Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/reference.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/wrap_type.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/wrap_type.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..25f028c50a4ec5f59f6f4e020cc21fea5cfa6cc6 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/functorch/dim/__pycache__/wrap_type.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/__main__.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/__main__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bbee55b91a69cc773604ec1eeb674fa6ec25d2af Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/__main__.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_cell_widths.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_cell_widths.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6b9fe2a46242cc045ec9ec1e39cc8eb1bed7655 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_cell_widths.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_emoji_replace.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_emoji_replace.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..88210ea327ac1d98575dd756d2ccbb893338f6d3 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_emoji_replace.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_export_format.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_export_format.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5eabc175c48abebe5ba168c7c52a95c4995c715f Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_export_format.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_extension.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_extension.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c86748451d4c76ad26441660dd93476e080b8fd4 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_extension.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_fileno.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_fileno.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bc1e353b857df1439364af3fa501ad1fdcf54049 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_fileno.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_inspect.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_inspect.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2911563c9b370f0f09f7446291a82c0bd0483c02 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_inspect.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_null_file.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_null_file.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..64d47d46f8b2296a3fcaa83754446d23d43c741f Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_null_file.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_palettes.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_palettes.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ca6995c391f7b41c31f38c3a383fab227372c8c1 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_palettes.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_ratio.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_ratio.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3e417c2a6758cf4063ab5e3b648f3ebc266e43af Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_ratio.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_spinners.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_spinners.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c141c7636f2febde32bd422b7d719182c7da7bea Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_spinners.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_stack.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_stack.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..69b5a10901aa7584454a982271870c99fbc95df2 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_stack.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_timer.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_timer.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..34df06c0b8f3ccf867fc8b5b41ec7ae64b2888f8 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_timer.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_win32_console.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_win32_console.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8a209a491055b99ce2d5456c0338e7d696d79ea3 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_win32_console.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_windows.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_windows.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0d3430fbe78f49688c3ea30964e13eb12ecfc641 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_windows.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_windows_renderer.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_windows_renderer.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1a878c08e99c9f7adf72e9e035f56d6217c5fa28 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_windows_renderer.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_wrap.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_wrap.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c85ae1ec08628da496c2a1106dbc245e4b8818bb Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/_wrap.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/abc.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/abc.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2e5e541e49553df5d3fcfb8c53407a8ea23ff5c6 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/abc.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/ansi.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/ansi.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3e11f5b9fe4ff260799ef8ac843c3f45c5e165db Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/ansi.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/bar.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/bar.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..85bfb9f5b1a0fd3f57afeb1d33f4c3bda7ad48e5 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/bar.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/box.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/box.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8eeec20d34494bc57d9897c1f50b95477451de24 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/box.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/cells.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/cells.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..947cdf6b1aa8d88d91dae8f093b8eb8fb91ca7b5 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/cells.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/color.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/color.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..37040c99b46babdf5701e8fe5dd65c8dc64d461c Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/color.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/color_triplet.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/color_triplet.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bc6e2b319492ac71c8bfe6e12c0954cb30586f75 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/color_triplet.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/columns.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/columns.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2d052dc0b71238f569847d6a6c26880a175dfc1c Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/columns.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/constrain.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/constrain.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6c5c91a593c783eb12a428859b1ab2af47faa90 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/constrain.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/containers.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/containers.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1bd52c22f9ee01b1952f1f0f82c9c151b547f196 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/containers.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/control.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/control.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0591b1b35b05c88b730bb57a0b85ec73ae11b40c Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/control.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/diagnose.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/diagnose.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49c7358af9808cca83e8c58c8d8b605ded3caccb Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/diagnose.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/emoji.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/emoji.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ae378b6d23b3ed4fc315ace23ed204e1bb709cea Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/emoji.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/errors.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/errors.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5b1201cff810bababaefa310565d0d6fe9e632b5 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/errors.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/file_proxy.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/file_proxy.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c11958a7091fa90ec0e62fa7beb99ee0fe9c9b1e Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/file_proxy.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/filesize.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/filesize.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..99340937d9b42774af67711738ad1eecd4b51143 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/filesize.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/highlighter.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/highlighter.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..23040df6dfab99387abfbe9887c65a25b82c6287 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/highlighter.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/layout.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/layout.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e430046de4168b7745d124eaec0ba7416b1b0e61 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/layout.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/markdown.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/markdown.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8ec10957625e7d4945d534135f2253af78bd6896 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/markdown.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/markup.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/markup.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a10a6afee88dbae965674d2613825a507b6e04b4 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/markup.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/measure.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/measure.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e98d973dffa3be0dd8cd8e5a30ff9122b2ab9a5b Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/measure.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/padding.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/padding.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0d2a9d790b2bbb2dc7c0f07babc5b57cfc746637 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/padding.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/palette.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/palette.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..01a03f8998bc697639b7f1c7106a240a3f73b105 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/palette.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/panel.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/panel.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5da14223adbb23d613171fa4ef4881dc06749254 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/panel.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/progress_bar.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/progress_bar.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e4014fcf65b1b4f1e5f9a627dd7ab8b6dff7d552 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/progress_bar.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/protocol.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/protocol.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..939a9014a9640318b0f065388051dada8e251bfa Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/protocol.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/region.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/region.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6bf1fcf6c7a3104bb0a90ffe3487c5b14d37219f Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/region.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/repr.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/repr.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..65fe8f2606dfe170eb52642c15b874aea5ae4ce5 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/repr.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/rule.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/rule.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8345f34c402d877fe0e85723fd72835ecd400db9 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/rule.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/screen.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/screen.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bcfcffceae1bc4007f1137792d61e2e3325cd82c Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/screen.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/segment.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/segment.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..87eed57ea41c67516cd3c365423e215cfea3ba05 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/segment.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/spinner.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/spinner.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..19d3642fbd1ea6218ace14ffd1c4198811c0274a Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/spinner.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/style.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/style.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c018f50e654fdf2d5adbec420fab043dd149c558 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/style.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/styled.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/styled.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f18d58fc0a88aff13100be42d445e5e165fda8f0 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/styled.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/syntax.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/syntax.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a0628b5c0a88b0d3a409503eb0846af2ed5032a9 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/syntax.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/table.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/table.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4571bccf7d351318b63ab2ba22f29b7bea4fa6af Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/table.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/text.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/text.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c6609f9dff2accd055cdbecb91019d3496dcfb39 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/text.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/theme.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/theme.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2f0f40b93546c779762d025418d13835eb7cb3e8 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/theme.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/themes.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/themes.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d61d1f08f0edf08cf50432b5c140b011ad5f14d5 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/themes.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/traceback.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/traceback.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ccc78af7a1c881975d62a851700e0bf83d9d18e8 Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/traceback.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/tree.cpython-310.pyc b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/tree.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f365ce3010686b4b78bba33d1def9e6d196f00ed Binary files /dev/null and b/evalkit_cambrian/lib/python3.10/site-packages/rich/__pycache__/tree.cpython-310.pyc differ diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/bar.py b/evalkit_cambrian/lib/python3.10/site-packages/rich/bar.py new file mode 100644 index 0000000000000000000000000000000000000000..022284b57881d8b133aced5b5a843e6447bb4e0b --- /dev/null +++ b/evalkit_cambrian/lib/python3.10/site-packages/rich/bar.py @@ -0,0 +1,93 @@ +from typing import Optional, Union + +from .color import Color +from .console import Console, ConsoleOptions, RenderResult +from .jupyter import JupyterMixin +from .measure import Measurement +from .segment import Segment +from .style import Style + +# There are left-aligned characters for 1/8 to 7/8, but +# the right-aligned characters exist only for 1/8 and 4/8. +BEGIN_BLOCK_ELEMENTS = ["█", "█", "█", "▐", "▐", "▐", "▕", "▕"] +END_BLOCK_ELEMENTS = [" ", "▏", "▎", "▍", "▌", "▋", "▊", "▉"] +FULL_BLOCK = "█" + + +class Bar(JupyterMixin): + """Renders a solid block bar. + + Args: + size (float): Value for the end of the bar. + begin (float): Begin point (between 0 and size, inclusive). + end (float): End point (between 0 and size, inclusive). + width (int, optional): Width of the bar, or ``None`` for maximum width. Defaults to None. + color (Union[Color, str], optional): Color of the bar. Defaults to "default". + bgcolor (Union[Color, str], optional): Color of bar background. Defaults to "default". + """ + + def __init__( + self, + size: float, + begin: float, + end: float, + *, + width: Optional[int] = None, + color: Union[Color, str] = "default", + bgcolor: Union[Color, str] = "default", + ): + self.size = size + self.begin = max(begin, 0) + self.end = min(end, size) + self.width = width + self.style = Style(color=color, bgcolor=bgcolor) + + def __repr__(self) -> str: + return f"Bar({self.size}, {self.begin}, {self.end})" + + def __rich_console__( + self, console: Console, options: ConsoleOptions + ) -> RenderResult: + width = min( + self.width if self.width is not None else options.max_width, + options.max_width, + ) + + if self.begin >= self.end: + yield Segment(" " * width, self.style) + yield Segment.line() + return + + prefix_complete_eights = int(width * 8 * self.begin / self.size) + prefix_bar_count = prefix_complete_eights // 8 + prefix_eights_count = prefix_complete_eights % 8 + + body_complete_eights = int(width * 8 * self.end / self.size) + body_bar_count = body_complete_eights // 8 + body_eights_count = body_complete_eights % 8 + + # When start and end fall into the same cell, we ideally should render + # a symbol that's "center-aligned", but there is no good symbol in Unicode. + # In this case, we fall back to right-aligned block symbol for simplicity. + + prefix = " " * prefix_bar_count + if prefix_eights_count: + prefix += BEGIN_BLOCK_ELEMENTS[prefix_eights_count] + + body = FULL_BLOCK * body_bar_count + if body_eights_count: + body += END_BLOCK_ELEMENTS[body_eights_count] + + suffix = " " * (width - len(body)) + + yield Segment(prefix + body[len(prefix) :] + suffix, self.style) + yield Segment.line() + + def __rich_measure__( + self, console: Console, options: ConsoleOptions + ) -> Measurement: + return ( + Measurement(self.width, self.width) + if self.width is not None + else Measurement(4, options.max_width) + ) diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/box.py b/evalkit_cambrian/lib/python3.10/site-packages/rich/box.py new file mode 100644 index 0000000000000000000000000000000000000000..aa4ada32ed6a9f7813d7eb16f475cee4a1b8caa7 --- /dev/null +++ b/evalkit_cambrian/lib/python3.10/site-packages/rich/box.py @@ -0,0 +1,480 @@ +import sys +from typing import TYPE_CHECKING, Iterable, List + +if sys.version_info >= (3, 8): + from typing import Literal +else: + from typing_extensions import Literal # pragma: no cover + + +from ._loop import loop_last + +if TYPE_CHECKING: + from rich.console import ConsoleOptions + + +class Box: + """Defines characters to render boxes. + + ┌─┬┐ top + │ ││ head + ├─┼┤ head_row + │ ││ mid + ├─┼┤ row + ├─┼┤ foot_row + │ ││ foot + └─┴┘ bottom + + Args: + box (str): Characters making up box. + ascii (bool, optional): True if this box uses ascii characters only. Default is False. + """ + + def __init__(self, box: str, *, ascii: bool = False) -> None: + self._box = box + self.ascii = ascii + line1, line2, line3, line4, line5, line6, line7, line8 = box.splitlines() + # top + self.top_left, self.top, self.top_divider, self.top_right = iter(line1) + # head + self.head_left, _, self.head_vertical, self.head_right = iter(line2) + # head_row + ( + self.head_row_left, + self.head_row_horizontal, + self.head_row_cross, + self.head_row_right, + ) = iter(line3) + + # mid + self.mid_left, _, self.mid_vertical, self.mid_right = iter(line4) + # row + self.row_left, self.row_horizontal, self.row_cross, self.row_right = iter(line5) + # foot_row + ( + self.foot_row_left, + self.foot_row_horizontal, + self.foot_row_cross, + self.foot_row_right, + ) = iter(line6) + # foot + self.foot_left, _, self.foot_vertical, self.foot_right = iter(line7) + # bottom + self.bottom_left, self.bottom, self.bottom_divider, self.bottom_right = iter( + line8 + ) + + def __repr__(self) -> str: + return "Box(...)" + + def __str__(self) -> str: + return self._box + + def substitute(self, options: "ConsoleOptions", safe: bool = True) -> "Box": + """Substitute this box for another if it won't render due to platform issues. + + Args: + options (ConsoleOptions): Console options used in rendering. + safe (bool, optional): Substitute this for another Box if there are known problems + displaying on the platform (currently only relevant on Windows). Default is True. + + Returns: + Box: A different Box or the same Box. + """ + box = self + if options.legacy_windows and safe: + box = LEGACY_WINDOWS_SUBSTITUTIONS.get(box, box) + if options.ascii_only and not box.ascii: + box = ASCII + return box + + def get_plain_headed_box(self) -> "Box": + """If this box uses special characters for the borders of the header, then + return the equivalent box that does not. + + Returns: + Box: The most similar Box that doesn't use header-specific box characters. + If the current Box already satisfies this criterion, then it's returned. + """ + return PLAIN_HEADED_SUBSTITUTIONS.get(self, self) + + def get_top(self, widths: Iterable[int]) -> str: + """Get the top of a simple box. + + Args: + widths (List[int]): Widths of columns. + + Returns: + str: A string of box characters. + """ + + parts: List[str] = [] + append = parts.append + append(self.top_left) + for last, width in loop_last(widths): + append(self.top * width) + if not last: + append(self.top_divider) + append(self.top_right) + return "".join(parts) + + def get_row( + self, + widths: Iterable[int], + level: Literal["head", "row", "foot", "mid"] = "row", + edge: bool = True, + ) -> str: + """Get the top of a simple box. + + Args: + width (List[int]): Widths of columns. + + Returns: + str: A string of box characters. + """ + if level == "head": + left = self.head_row_left + horizontal = self.head_row_horizontal + cross = self.head_row_cross + right = self.head_row_right + elif level == "row": + left = self.row_left + horizontal = self.row_horizontal + cross = self.row_cross + right = self.row_right + elif level == "mid": + left = self.mid_left + horizontal = " " + cross = self.mid_vertical + right = self.mid_right + elif level == "foot": + left = self.foot_row_left + horizontal = self.foot_row_horizontal + cross = self.foot_row_cross + right = self.foot_row_right + else: + raise ValueError("level must be 'head', 'row' or 'foot'") + + parts: List[str] = [] + append = parts.append + if edge: + append(left) + for last, width in loop_last(widths): + append(horizontal * width) + if not last: + append(cross) + if edge: + append(right) + return "".join(parts) + + def get_bottom(self, widths: Iterable[int]) -> str: + """Get the bottom of a simple box. + + Args: + widths (List[int]): Widths of columns. + + Returns: + str: A string of box characters. + """ + + parts: List[str] = [] + append = parts.append + append(self.bottom_left) + for last, width in loop_last(widths): + append(self.bottom * width) + if not last: + append(self.bottom_divider) + append(self.bottom_right) + return "".join(parts) + + +# fmt: off +ASCII: Box = Box( + "+--+\n" + "| ||\n" + "|-+|\n" + "| ||\n" + "|-+|\n" + "|-+|\n" + "| ||\n" + "+--+\n", + ascii=True, +) + +ASCII2: Box = Box( + "+-++\n" + "| ||\n" + "+-++\n" + "| ||\n" + "+-++\n" + "+-++\n" + "| ||\n" + "+-++\n", + ascii=True, +) + +ASCII_DOUBLE_HEAD: Box = Box( + "+-++\n" + "| ||\n" + "+=++\n" + "| ||\n" + "+-++\n" + "+-++\n" + "| ||\n" + "+-++\n", + ascii=True, +) + +SQUARE: Box = Box( + "┌─┬┐\n" + "│ ││\n" + "├─┼┤\n" + "│ ││\n" + "├─┼┤\n" + "├─┼┤\n" + "│ ││\n" + "└─┴┘\n" +) + +SQUARE_DOUBLE_HEAD: Box = Box( + "┌─┬┐\n" + "│ ││\n" + "╞═╪╡\n" + "│ ││\n" + "├─┼┤\n" + "├─┼┤\n" + "│ ││\n" + "└─┴┘\n" +) + +MINIMAL: Box = Box( + " ╷ \n" + " │ \n" + "╶─┼╴\n" + " │ \n" + "╶─┼╴\n" + "╶─┼╴\n" + " │ \n" + " ╵ \n" +) + + +MINIMAL_HEAVY_HEAD: Box = Box( + " ╷ \n" + " │ \n" + "╺━┿╸\n" + " │ \n" + "╶─┼╴\n" + "╶─┼╴\n" + " │ \n" + " ╵ \n" +) + +MINIMAL_DOUBLE_HEAD: Box = Box( + " ╷ \n" + " │ \n" + " ═╪ \n" + " │ \n" + " ─┼ \n" + " ─┼ \n" + " │ \n" + " ╵ \n" +) + + +SIMPLE: Box = Box( + " \n" + " \n" + " ── \n" + " \n" + " \n" + " ── \n" + " \n" + " \n" +) + +SIMPLE_HEAD: Box = Box( + " \n" + " \n" + " ── \n" + " \n" + " \n" + " \n" + " \n" + " \n" +) + + +SIMPLE_HEAVY: Box = Box( + " \n" + " \n" + " ━━ \n" + " \n" + " \n" + " ━━ \n" + " \n" + " \n" +) + + +HORIZONTALS: Box = Box( + " ── \n" + " \n" + " ── \n" + " \n" + " ── \n" + " ── \n" + " \n" + " ── \n" +) + +ROUNDED: Box = Box( + "╭─┬╮\n" + "│ ││\n" + "├─┼┤\n" + "│ ││\n" + "├─┼┤\n" + "├─┼┤\n" + "│ ││\n" + "╰─┴╯\n" +) + +HEAVY: Box = Box( + "┏━┳┓\n" + "┃ ┃┃\n" + "┣━╋┫\n" + "┃ ┃┃\n" + "┣━╋┫\n" + "┣━╋┫\n" + "┃ ┃┃\n" + "┗━┻┛\n" +) + +HEAVY_EDGE: Box = Box( + "┏━┯┓\n" + "┃ │┃\n" + "┠─┼┨\n" + "┃ │┃\n" + "┠─┼┨\n" + "┠─┼┨\n" + "┃ │┃\n" + "┗━┷┛\n" +) + +HEAVY_HEAD: Box = Box( + "┏━┳┓\n" + "┃ ┃┃\n" + "┡━╇┩\n" + "│ ││\n" + "├─┼┤\n" + "├─┼┤\n" + "│ ││\n" + "└─┴┘\n" +) + +DOUBLE: Box = Box( + "╔═╦╗\n" + "║ ║║\n" + "╠═╬╣\n" + "║ ║║\n" + "╠═╬╣\n" + "╠═╬╣\n" + "║ ║║\n" + "╚═╩╝\n" +) + +DOUBLE_EDGE: Box = Box( + "╔═╤╗\n" + "║ │║\n" + "╟─┼╢\n" + "║ │║\n" + "╟─┼╢\n" + "╟─┼╢\n" + "║ │║\n" + "╚═╧╝\n" +) + +MARKDOWN: Box = Box( + " \n" + "| ||\n" + "|-||\n" + "| ||\n" + "|-||\n" + "|-||\n" + "| ||\n" + " \n", + ascii=True, +) +# fmt: on + +# Map Boxes that don't render with raster fonts on to equivalent that do +LEGACY_WINDOWS_SUBSTITUTIONS = { + ROUNDED: SQUARE, + MINIMAL_HEAVY_HEAD: MINIMAL, + SIMPLE_HEAVY: SIMPLE, + HEAVY: SQUARE, + HEAVY_EDGE: SQUARE, + HEAVY_HEAD: SQUARE, +} + +# Map headed boxes to their headerless equivalents +PLAIN_HEADED_SUBSTITUTIONS = { + HEAVY_HEAD: SQUARE, + SQUARE_DOUBLE_HEAD: SQUARE, + MINIMAL_DOUBLE_HEAD: MINIMAL, + MINIMAL_HEAVY_HEAD: MINIMAL, + ASCII_DOUBLE_HEAD: ASCII2, +} + + +if __name__ == "__main__": # pragma: no cover + from rich.columns import Columns + from rich.panel import Panel + + from . import box as box + from .console import Console + from .table import Table + from .text import Text + + console = Console(record=True) + + BOXES = [ + "ASCII", + "ASCII2", + "ASCII_DOUBLE_HEAD", + "SQUARE", + "SQUARE_DOUBLE_HEAD", + "MINIMAL", + "MINIMAL_HEAVY_HEAD", + "MINIMAL_DOUBLE_HEAD", + "SIMPLE", + "SIMPLE_HEAD", + "SIMPLE_HEAVY", + "HORIZONTALS", + "ROUNDED", + "HEAVY", + "HEAVY_EDGE", + "HEAVY_HEAD", + "DOUBLE", + "DOUBLE_EDGE", + "MARKDOWN", + ] + + console.print(Panel("[bold green]Box Constants", style="green"), justify="center") + console.print() + + columns = Columns(expand=True, padding=2) + for box_name in sorted(BOXES): + table = Table( + show_footer=True, style="dim", border_style="not dim", expand=True + ) + table.add_column("Header 1", "Footer 1") + table.add_column("Header 2", "Footer 2") + table.add_row("Cell", "Cell") + table.add_row("Cell", "Cell") + table.box = getattr(box, box_name) + table.title = Text(f"box.{box_name}", style="magenta") + columns.add_renderable(table) + console.print(columns) + + # console.save_svg("box.svg") diff --git a/evalkit_cambrian/lib/python3.10/site-packages/rich/highlighter.py b/evalkit_cambrian/lib/python3.10/site-packages/rich/highlighter.py new file mode 100644 index 0000000000000000000000000000000000000000..e4c462e2b632a268ecfb4772320206b94a3d859c --- /dev/null +++ b/evalkit_cambrian/lib/python3.10/site-packages/rich/highlighter.py @@ -0,0 +1,232 @@ +import re +from abc import ABC, abstractmethod +from typing import List, Union + +from .text import Span, Text + + +def _combine_regex(*regexes: str) -> str: + """Combine a number of regexes in to a single regex. + + Returns: + str: New regex with all regexes ORed together. + """ + return "|".join(regexes) + + +class Highlighter(ABC): + """Abstract base class for highlighters.""" + + def __call__(self, text: Union[str, Text]) -> Text: + """Highlight a str or Text instance. + + Args: + text (Union[str, ~Text]): Text to highlight. + + Raises: + TypeError: If not called with text or str. + + Returns: + Text: A test instance with highlighting applied. + """ + if isinstance(text, str): + highlight_text = Text(text) + elif isinstance(text, Text): + highlight_text = text.copy() + else: + raise TypeError(f"str or Text instance required, not {text!r}") + self.highlight(highlight_text) + return highlight_text + + @abstractmethod + def highlight(self, text: Text) -> None: + """Apply highlighting in place to text. + + Args: + text (~Text): A text object highlight. + """ + + +class NullHighlighter(Highlighter): + """A highlighter object that doesn't highlight. + + May be used to disable highlighting entirely. + + """ + + def highlight(self, text: Text) -> None: + """Nothing to do""" + + +class RegexHighlighter(Highlighter): + """Applies highlighting from a list of regular expressions.""" + + highlights: List[str] = [] + base_style: str = "" + + def highlight(self, text: Text) -> None: + """Highlight :class:`rich.text.Text` using regular expressions. + + Args: + text (~Text): Text to highlighted. + + """ + + highlight_regex = text.highlight_regex + for re_highlight in self.highlights: + highlight_regex(re_highlight, style_prefix=self.base_style) + + +class ReprHighlighter(RegexHighlighter): + """Highlights the text typically produced from ``__repr__`` methods.""" + + base_style = "repr." + highlights = [ + r"(?P<)(?P[-\w.:|]*)(?P[\w\W]*)(?P>)", + r'(?P[\w_]{1,50})=(?P"?[\w_]+"?)?', + r"(?P[][{}()])", + _combine_regex( + r"(?P[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})", + r"(?P([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})", + r"(?P(?:[0-9A-Fa-f]{1,2}-){7}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{1,2}:){7}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{4}\.){3}[0-9A-Fa-f]{4})", + r"(?P(?:[0-9A-Fa-f]{1,2}-){5}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{1,2}:){5}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{4}\.){2}[0-9A-Fa-f]{4})", + r"(?P[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})", + r"(?P[\w.]*?)\(", + r"\b(?PTrue)\b|\b(?PFalse)\b|\b(?PNone)\b", + r"(?P\.\.\.)", + r"(?P(?(?\B(/[-\w._+]+)*\/)(?P[-\w._+]*)?", + r"(?b?'''.*?(?(file|https|http|ws|wss)://[-0-9a-zA-Z$_+!`(),.?/;:&=%#~@]*)", + ), + ] + + +class JSONHighlighter(RegexHighlighter): + """Highlights JSON""" + + # Captures the start and end of JSON strings, handling escaped quotes + JSON_STR = r"(?b?\".*?(?[\{\[\(\)\]\}])", + r"\b(?Ptrue)\b|\b(?Pfalse)\b|\b(?Pnull)\b", + r"(?P(? None: + super().highlight(text) + + # Additional work to handle highlighting JSON keys + plain = text.plain + append = text.spans.append + whitespace = self.JSON_WHITESPACE + for match in re.finditer(self.JSON_STR, plain): + start, end = match.span() + cursor = end + while cursor < len(plain): + char = plain[cursor] + cursor += 1 + if char == ":": + append(Span(start, end, "json.key")) + elif char in whitespace: + continue + break + + +class ISO8601Highlighter(RegexHighlighter): + """Highlights the ISO8601 date time strings. + Regex reference: https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s07.html + """ + + base_style = "iso8601." + highlights = [ + # + # Dates + # + # Calendar month (e.g. 2008-08). The hyphen is required + r"^(?P[0-9]{4})-(?P1[0-2]|0[1-9])$", + # Calendar date w/o hyphens (e.g. 20080830) + r"^(?P(?P[0-9]{4})(?P1[0-2]|0[1-9])(?P3[01]|0[1-9]|[12][0-9]))$", + # Ordinal date (e.g. 2008-243). The hyphen is optional + r"^(?P(?P[0-9]{4})-?(?P36[0-6]|3[0-5][0-9]|[12][0-9]{2}|0[1-9][0-9]|00[1-9]))$", + # + # Weeks + # + # Week of the year (e.g., 2008-W35). The hyphen is optional + r"^(?P(?P[0-9]{4})-?W(?P5[0-3]|[1-4][0-9]|0[1-9]))$", + # Week date (e.g., 2008-W35-6). The hyphens are optional + r"^(?P(?P[0-9]{4})-?W(?P5[0-3]|[1-4][0-9]|0[1-9])-?(?P[1-7]))$", + # + # Times + # + # Hours and minutes (e.g., 17:21). The colon is optional + r"^(?P