content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
import inspect\nimport re\nfrom typing import Dict, List, Tuple\n\nfrom huggingface_hub.utils import insecure_hashlib\n\nfrom .arrow import arrow\nfrom .audiofolder import audiofolder\nfrom .cache import cache\nfrom .csv import csv\nfrom .imagefolder import imagefolder\nfrom .json import json\nfrom .pandas import panda... | .venv\Lib\site-packages\datasets\packaged_modules\__init__.py | __init__.py | Python | 5,212 | 0.95 | 0.153846 | 0.076087 | python-kit | 4 | 2024-10-09T21:26:15.444218 | GPL-3.0 | false | d9321244887abf106e72fe72a5bdbc6e |
import itertools\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nimport pyarrow as pa\n\nimport datasets\nfrom datasets.table import table_cast\n\n\nlogger = datasets.utils.logging.get_logger(__name__)\n\n\n@dataclass\nclass ArrowConfig(datasets.BuilderConfig):\n """BuilderConfig for Arrow."""\n\n... | .venv\Lib\site-packages\datasets\packaged_modules\arrow\arrow.py | arrow.py | Python | 3,494 | 0.95 | 0.316456 | 0.107692 | node-utils | 989 | 2024-01-28T22:12:33.017525 | GPL-3.0 | false | 046c2997852da184e8dbae6dd935332a |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\arrow\__pycache__\arrow.cpython-313.pyc | arrow.cpython-313.pyc | Other | 6,044 | 0.8 | 0.020833 | 0.021277 | python-kit | 2 | 2025-04-02T02:14:52.242110 | GPL-3.0 | false | 9cc50cfa2299d936dbbc4abed4724b8d |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\arrow\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 206 | 0.7 | 0 | 0 | awesome-app | 76 | 2024-04-02T22:19:40.113752 | GPL-3.0 | false | 87fc11881a2fbbe1eb7028f9c77c9855 |
import datasets\n\nfrom ..folder_based_builder import folder_based_builder\n\n\nlogger = datasets.utils.logging.get_logger(__name__)\n\n\nclass AudioFolderConfig(folder_based_builder.FolderBasedBuilderConfig):\n """Builder Config for AudioFolder."""\n\n drop_labels: bool = None\n drop_metadata: bool = None\n\n... | .venv\Lib\site-packages\datasets\packaged_modules\audiofolder\audiofolder.py | audiofolder.py | Python | 1,468 | 0.95 | 0.089552 | 0.214286 | react-lib | 497 | 2024-05-03T03:21:23.467777 | GPL-3.0 | false | b9ce460c2721d6d02ce3a25ed07268de |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\audiofolder\__pycache__\audiofolder.cpython-313.pyc | audiofolder.cpython-313.pyc | Other | 1,778 | 0.7 | 0.058824 | 0 | react-lib | 317 | 2024-11-23T00:22:13.375324 | Apache-2.0 | false | f0047cf8f06290fc5ad031e040c5e43b |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\audiofolder\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 212 | 0.7 | 0 | 0 | node-utils | 26 | 2024-04-16T21:06:29.823225 | BSD-3-Clause | false | ff86a0567bbf681cd5c116d35e1819bd |
import glob\nimport json\nimport os\nimport shutil\nimport time\nfrom pathlib import Path\nfrom typing import Optional, Union\n\nimport pyarrow as pa\n\nimport datasets\nimport datasets.config\nimport datasets.data_files\nfrom datasets.naming import camelcase_to_snakecase, filenames_for_dataset_split\n\n\nlogger = data... | .venv\Lib\site-packages\datasets\packaged_modules\cache\cache.py | cache.py | Python | 8,196 | 0.95 | 0.198953 | 0.039548 | awesome-app | 690 | 2024-02-12T00:39:26.194636 | Apache-2.0 | false | f62ff705024e1c52f0f0aa0b126b6d85 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\cache\__pycache__\cache.cpython-313.pyc | cache.cpython-313.pyc | Other | 10,464 | 0.95 | 0.03876 | 0.008 | vue-tools | 364 | 2023-11-08T00:54:05.893054 | GPL-3.0 | false | 04adfb9aebbc8050fc8c783f78572f1b |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\cache\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 206 | 0.7 | 0 | 0 | python-kit | 765 | 2023-07-31T22:16:33.068465 | MIT | false | 0ac9c8133aa4d6e646b2d68be1a9007e |
import itertools\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Optional, Union\n\nimport pandas as pd\nimport pyarrow as pa\n\nimport datasets\nimport datasets.config\nfrom datasets.features.features import require_storage_cast\nfrom datasets.table import table_cast\nfrom datasets.utils.py_utils... | .venv\Lib\site-packages\datasets\packaged_modules\csv\csv.py | csv.py | Python | 8,568 | 0.95 | 0.20202 | 0.062147 | react-lib | 35 | 2025-06-26T12:29:14.001092 | BSD-3-Clause | false | f4a174b30dd2d3e74ce8d9dfa199baa0 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\csv\__pycache__\csv.cpython-313.pyc | csv.cpython-313.pyc | Other | 11,866 | 0.95 | 0.00641 | 0.006579 | vue-tools | 961 | 2023-10-16T23:07:15.564597 | BSD-3-Clause | false | 9d5ce8c005368ee90e4e8f67566d2642 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\csv\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 204 | 0.7 | 0 | 0 | vue-tools | 80 | 2025-06-08T00:24:34.811050 | Apache-2.0 | false | 02ab3349489541a91b46ab958f07bb55 |
import collections\nimport io\nimport itertools\nimport os\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Iterator, Optional, Union\n\nimport pandas as pd\nimport pyarrow as pa\nimport pyarrow.dataset as ds\nimport pyarrow.json as paj\nimport pyarrow.parquet as pq\n\nimport datasets\nfrom dataset... | .venv\Lib\site-packages\datasets\packaged_modules\folder_based_builder\folder_based_builder.py | folder_based_builder.py | Python | 21,074 | 0.95 | 0.251799 | 0.06117 | react-lib | 381 | 2024-06-12T01:04:45.185432 | MIT | false | 95ad29081dd9b1b0797b1f7fd3e804b8 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\folder_based_builder\__pycache__\folder_based_builder.cpython-313.pyc | folder_based_builder.cpython-313.pyc | Other | 23,578 | 0.95 | 0.040936 | 0.006061 | python-kit | 785 | 2024-10-26T17:21:18.797471 | GPL-3.0 | false | b664bfeb5dc84d979a968093824722f9 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\folder_based_builder\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 221 | 0.7 | 0 | 0 | node-utils | 167 | 2024-03-05T06:29:49.159482 | BSD-3-Clause | false | 4943c802e4a9fbca606f8929fb3e7b3a |
from dataclasses import dataclass\nfrom typing import Callable, Optional\n\nimport datasets\n\n\n@dataclass\nclass GeneratorConfig(datasets.BuilderConfig):\n generator: Optional[Callable] = None\n gen_kwargs: Optional[dict] = None\n features: Optional[datasets.Features] = None\n split: datasets.NamedSplit =... | .venv\Lib\site-packages\datasets\packaged_modules\generator\generator.py | generator.py | Python | 1,002 | 0.85 | 0.242424 | 0 | awesome-app | 705 | 2024-10-27T21:22:09.750971 | Apache-2.0 | false | 0644154bf0af030335b3e8b3e8a5af44 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\generator\__pycache__\generator.cpython-313.pyc | generator.cpython-313.pyc | Other | 2,633 | 0.8 | 0 | 0 | vue-tools | 185 | 2023-09-12T15:34:39.459024 | GPL-3.0 | false | 03939137e246a3a8a0c6ad2c0a7df19c |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\generator\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 210 | 0.7 | 0 | 0 | python-kit | 61 | 2023-10-04T18:25:12.275736 | Apache-2.0 | false | e4eacfd558aab273c64591b5460f40c7 |
import datasets\n\nfrom ..folder_based_builder import folder_based_builder\n\n\nlogger = datasets.utils.logging.get_logger(__name__)\n\n\nclass ImageFolderConfig(folder_based_builder.FolderBasedBuilderConfig):\n """BuilderConfig for ImageFolder."""\n\n drop_labels: bool = None\n drop_metadata: bool = None\n\n ... | .venv\Lib\site-packages\datasets\packaged_modules\imagefolder\imagefolder.py | imagefolder.py | Python | 1,956 | 0.95 | 0.058252 | 0.152174 | vue-tools | 326 | 2023-08-11T03:38:33.397212 | BSD-3-Clause | false | f1b59f8c31dc6f1e415f5563f5d6d206 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\imagefolder\__pycache__\imagefolder.cpython-313.pyc | imagefolder.cpython-313.pyc | Other | 1,980 | 0.7 | 0.058824 | 0 | react-lib | 210 | 2025-03-11T04:51:49.983217 | MIT | false | eaff5904696ad9dea38aa7b7a283d5be |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\imagefolder\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 212 | 0.7 | 0 | 0 | node-utils | 709 | 2023-08-24T20:59:09.431430 | BSD-3-Clause | false | f6322916b7f0be5fbb3915def6207fbb |
import io\nimport itertools\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nimport pandas as pd\nimport pyarrow as pa\nimport pyarrow.json as paj\n\nimport datasets\nimport datasets.config\nfrom datasets.table import table_cast\nfrom datasets.utils.file_utils import readline\n\n\nlogger = datasets.ut... | .venv\Lib\site-packages\datasets\packaged_modules\json\json.py | json.py | Python | 8,698 | 0.95 | 0.247191 | 0.089172 | vue-tools | 435 | 2024-08-26T13:34:27.091847 | GPL-3.0 | false | 5c42bf9d23aa16f49ee23f32740d7f97 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\json\__pycache__\json.cpython-313.pyc | json.cpython-313.pyc | Other | 11,452 | 0.8 | 0.009804 | 0 | python-kit | 592 | 2024-04-13T04:18:14.566457 | MIT | false | cc0cfe6740281b02f64823647db2dce2 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\json\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 205 | 0.7 | 0 | 0 | awesome-app | 186 | 2024-09-18T01:50:15.102386 | BSD-3-Clause | false | 11e8a70b418447a8637bd2c1d9ce7ac4 |
import itertools\nimport warnings\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nimport pandas as pd\nimport pyarrow as pa\n\nimport datasets\nfrom datasets.table import table_cast\n\n\n@dataclass\nclass PandasConfig(datasets.BuilderConfig):\n """BuilderConfig for Pandas."""\n\n features: Opti... | .venv\Lib\site-packages\datasets\packaged_modules\pandas\pandas.py | pandas.py | Python | 2,547 | 0.95 | 0.276923 | 0.075472 | awesome-app | 843 | 2023-12-30T21:12:28.242815 | Apache-2.0 | false | 345571a0a0503332ce2fdf5e7c138ed0 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\pandas\__pycache__\pandas.cpython-313.pyc | pandas.cpython-313.pyc | Other | 4,525 | 0.8 | 0.022727 | 0 | awesome-app | 31 | 2024-04-24T07:36:08.324948 | BSD-3-Clause | false | 7a627e3a88095b0d47ede0994684b019 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\pandas\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 207 | 0.7 | 0 | 0 | awesome-app | 887 | 2024-06-13T04:41:10.612443 | BSD-3-Clause | false | 5f1dfb9bea034d02a62f6b8bbd8c209c |
import itertools\nfrom dataclasses import dataclass\nfrom typing import Optional, Union\n\nimport pyarrow as pa\nimport pyarrow.dataset as ds\nimport pyarrow.parquet as pq\n\nimport datasets\nfrom datasets.table import table_cast\n\n\nlogger = datasets.utils.logging.get_logger(__name__)\n\n\n@dataclass\nclass ParquetCo... | .venv\Lib\site-packages\datasets\packaged_modules\parquet\parquet.py | parquet.py | Python | 5,099 | 0.95 | 0.284404 | 0.073684 | python-kit | 327 | 2025-04-25T02:36:22.363419 | GPL-3.0 | false | 69ed585d3c9e65c5b1a77dfb29008316 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\parquet\__pycache__\parquet.cpython-313.pyc | parquet.cpython-313.pyc | Other | 8,302 | 0.8 | 0.014085 | 0 | vue-tools | 916 | 2024-05-06T19:17:09.717338 | MIT | false | a018a1f34d7bd698340efae0f26a042d |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\parquet\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 208 | 0.7 | 0 | 0 | python-kit | 772 | 2024-08-04T17:41:17.241620 | BSD-3-Clause | false | 5269598bec056b17a3d7cd3b3e0b10b6 |
import datasets\n\nfrom ..folder_based_builder import folder_based_builder\n\n\nlogger = datasets.utils.logging.get_logger(__name__)\n\n\nclass PdfFolderConfig(folder_based_builder.FolderBasedBuilderConfig):\n """BuilderConfig for ImageFolder."""\n\n drop_labels: bool = None\n drop_metadata: bool = None\n\n ... | .venv\Lib\site-packages\datasets\packaged_modules\pdffolder\pdffolder.py | pdffolder.py | Python | 565 | 0.85 | 0.173913 | 0 | react-lib | 216 | 2023-07-17T02:57:12.164175 | MIT | false | 7bd77453d73a673d4aeb84e6deab2e73 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\pdffolder\__pycache__\pdffolder.cpython-313.pyc | pdffolder.cpython-313.pyc | Other | 1,548 | 0.8 | 0.066667 | 0 | node-utils | 967 | 2025-02-11T06:29:36.339633 | BSD-3-Clause | false | 66b32d61f57ddefb565e69762011dbfb |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\pdffolder\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 210 | 0.7 | 0 | 0 | awesome-app | 427 | 2023-12-13T17:29:42.257349 | MIT | false | ae31ca369e17fbf79f961c926bedf8fa |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\spark\__pycache__\spark.cpython-313.pyc | spark.cpython-313.pyc | Other | 19,884 | 0.95 | 0.006329 | 0.012987 | react-lib | 482 | 2024-09-26T19:33:03.106642 | BSD-3-Clause | false | 33981bf54ea5390f4ddfb854e1bbec00 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\spark\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 206 | 0.7 | 0 | 0 | vue-tools | 937 | 2023-09-06T04:42:19.784578 | GPL-3.0 | false | 26a31173b8384d10036e523eb39178e8 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\sql\__pycache__\sql.cpython-313.pyc | sql.cpython-313.pyc | Other | 7,185 | 0.95 | 0.034483 | 0 | node-utils | 113 | 2024-04-21T03:33:25.953820 | GPL-3.0 | false | 533db2cae71cc59c5e56e66c27f61448 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\sql\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 204 | 0.7 | 0 | 0 | python-kit | 739 | 2025-06-13T13:45:34.007146 | Apache-2.0 | false | 18ab9128e04e2c5b85891d687b242d6e |
import itertools\nfrom dataclasses import dataclass\nfrom io import StringIO\nfrom typing import Optional\n\nimport pyarrow as pa\n\nimport datasets\nfrom datasets.features.features import require_storage_cast\nfrom datasets.table import table_cast\n\n\nlogger = datasets.utils.logging.get_logger(__name__)\n\n\n@datacla... | .venv\Lib\site-packages\datasets\packaged_modules\text\text.py | text.py | Python | 5,516 | 0.95 | 0.276786 | 0.102041 | vue-tools | 104 | 2024-06-07T07:02:52.986081 | Apache-2.0 | false | 5c781bcc543d85a33dbdb89e5f750ec6 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\text\__pycache__\text.cpython-313.pyc | text.cpython-313.pyc | Other | 7,358 | 0.95 | 0.014493 | 0 | vue-tools | 922 | 2024-02-16T22:11:24.073433 | BSD-3-Clause | false | 83187175e53bd1d3841f6c9f494a3bf6 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\text\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 205 | 0.7 | 0 | 0 | python-kit | 739 | 2025-05-24T16:59:20.696452 | MIT | false | 96958b01773353fec618603ca614f5c0 |
import datasets\n\nfrom ..folder_based_builder import folder_based_builder\n\n\nlogger = datasets.utils.logging.get_logger(__name__)\n\n\nclass VideoFolderConfig(folder_based_builder.FolderBasedBuilderConfig):\n """BuilderConfig for ImageFolder."""\n\n drop_labels: bool = None\n drop_metadata: bool = None\n\n ... | .venv\Lib\site-packages\datasets\packaged_modules\videofolder\videofolder.py | videofolder.py | Python | 807 | 0.95 | 0.117647 | 0.043478 | node-utils | 58 | 2025-06-03T07:14:45.395028 | Apache-2.0 | false | 4a2e579d474aa20341e0e980ca9f200b |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\videofolder\__pycache__\videofolder.cpython-313.pyc | videofolder.cpython-313.pyc | Other | 1,635 | 0.7 | 0.058824 | 0 | awesome-app | 968 | 2024-07-20T15:52:09.418549 | MIT | false | ca3a63e8b8d0e8644c69bbd77da1d128 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\videofolder\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 212 | 0.7 | 0 | 0 | awesome-app | 204 | 2024-04-12T20:55:16.577689 | MIT | false | 3d80c2cc0684014466e51bb6f6abd00c |
#\n# Copyright (c) 2017-2021 NVIDIA CORPORATION. All rights reserved.\n# This file coems from the WebDataset library.\n# See the LICENSE file for licensing terms (BSD-style).\n#\n\n"""\nBinary tensor encodings for PyTorch and NumPy.\n\nThis defines efficient binary encodings for tensors. The format is 8 byte\naligned a... | .venv\Lib\site-packages\datasets\packaged_modules\webdataset\_tenbin.py | _tenbin.py | Python | 8,533 | 0.95 | 0.224561 | 0.026201 | react-lib | 68 | 2023-09-29T12:19:07.357006 | MIT | false | 006e4ac40af155daee1a4dbbbbe2b81e |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\webdataset\__pycache__\webdataset.cpython-313.pyc | webdataset.cpython-313.pyc | Other | 11,627 | 0.8 | 0 | 0 | vue-tools | 920 | 2024-03-15T20:06:28.826492 | BSD-3-Clause | false | 5c9183840afc31bebd9a723311ba9f2f |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\webdataset\__pycache__\_tenbin.cpython-313.pyc | _tenbin.cpython-313.pyc | Other | 13,172 | 0.95 | 0.027322 | 0 | react-lib | 99 | 2024-06-24T04:22:29.521881 | GPL-3.0 | false | 13d991a24f9b36f545c0caab3453c093 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\webdataset\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 211 | 0.7 | 0 | 0 | vue-tools | 144 | 2025-07-01T19:39:39.100773 | GPL-3.0 | false | bcea44370459ffe3bfc80191f0311bfa |
import itertools\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nimport pyarrow as pa\n\nimport datasets\nfrom datasets.features.features import require_storage_cast\nfrom datasets.table import table_cast\n\n\nlogger = datasets.utils.logging.get_logger(__name__)\n\n\n@dataclass\nclass XmlConfig(datas... | .venv\Lib\site-packages\datasets\packaged_modules\xml\xml.py | xml.py | Python | 2,822 | 0.95 | 0.25 | 0.055556 | react-lib | 158 | 2025-02-24T11:44:06.056702 | GPL-3.0 | false | 09643a3f1b6eb5a69204c97d24a63e42 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\xml\__pycache__\xml.cpython-313.pyc | xml.cpython-313.pyc | Other | 5,227 | 0.95 | 0.02381 | 0 | python-kit | 832 | 2025-02-14T01:06:28.828310 | BSD-3-Clause | false | d3e3e1ccfefd04c9947cfb691db5fd19 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\xml\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 204 | 0.7 | 0 | 0 | react-lib | 561 | 2023-07-18T20:49:51.406531 | MIT | false | 802426265f502ffaaaf06003d52d0b84 |
\n\n | .venv\Lib\site-packages\datasets\packaged_modules\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 6,903 | 0.8 | 0 | 0 | react-lib | 791 | 2024-01-14T08:01:05.709170 | MIT | false | 22196f3ba818cd576ec5340f19bf7ebc |
import contextlib\nfrom multiprocessing import Pool, RLock\n\nfrom tqdm.auto import tqdm\n\nfrom ..utils import experimental, logging\n\n\nlogger = logging.get_logger(__name__)\n\n\nclass ParallelBackendConfig:\n backend_name = None\n\n\n@experimental\ndef parallel_map(function, iterable, num_proc, batched, batch_si... | .venv\Lib\site-packages\datasets\parallel\parallel.py | parallel.py | Python | 4,738 | 0.95 | 0.35 | 0.06383 | node-utils | 734 | 2024-09-18T21:53:06.819111 | BSD-3-Clause | false | 2de8b05effdcf0ddfaee42f43d2470d4 |
from .parallel import ParallelBackendConfig, parallel_backend, parallel_map\n | .venv\Lib\site-packages\datasets\parallel\__init__.py | __init__.py | Python | 76 | 0.65 | 0 | 0 | awesome-app | 363 | 2025-02-04T16:28:38.221658 | MIT | false | b6d27f543b320ae34ce5347c6fa2251e |
\n\n | .venv\Lib\site-packages\datasets\parallel\__pycache__\parallel.cpython-313.pyc | parallel.cpython-313.pyc | Other | 6,147 | 0.95 | 0.172414 | 0.024096 | python-kit | 242 | 2025-06-16T13:44:45.298184 | GPL-3.0 | false | 6a19d401092a1869f920da2817436867 |
\n\n | .venv\Lib\site-packages\datasets\parallel\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 302 | 0.7 | 0 | 0 | node-utils | 237 | 2024-09-08T13:22:11.675385 | MIT | false | 8e67313ed48d25f63137ce2a71415852 |
from typing import Callable\n\n\ndef is_documented_by(function_with_docstring: Callable):\n """Decorator to share docstrings across common functions.\n\n Args:\n function_with_docstring (`Callable`): Name of the function with the docstring.\n """\n\n def wrapper(target_function):\n target_func... | .venv\Lib\site-packages\datasets\utils\doc_utils.py | doc_utils.py | Python | 407 | 0.85 | 0.2 | 0 | python-kit | 410 | 2024-05-08T04:45:50.797843 | Apache-2.0 | false | f5c75494ca79fb7da3f8a8b3cb16de7a |
"""Contains utilities to flag a feature as "experimental" in datasets."""\n\nimport warnings\nfrom functools import wraps\nfrom typing import Callable\n\n\ndef experimental(fn: Callable) -> Callable:\n """Decorator to flag a feature as experimental.\n\n An experimental feature trigger a warning when used as it mi... | .venv\Lib\site-packages\datasets\utils\experimental.py | experimental.py | Python | 1,097 | 0.85 | 0.116279 | 0 | awesome-app | 619 | 2024-04-17T12:39:53.161343 | GPL-3.0 | false | b7bdb6ec736944c75c87e8bbb4443d39 |
import bz2\nimport gzip\nimport lzma\nimport os\nimport shutil\nimport struct\nimport tarfile\nimport warnings\nimport zipfile\nfrom abc import ABC, abstractmethod\nfrom pathlib import Path\nfrom typing import Optional, Union\n\nfrom .. import config\nfrom ._filelock import FileLock\nfrom .logging import get_logger\n\n... | .venv\Lib\site-packages\datasets\utils\extract.py | extract.py | Python | 13,021 | 0.95 | 0.21988 | 0.02963 | react-lib | 458 | 2024-02-26T22:26:33.686795 | BSD-3-Clause | false | 8fa89e208454cf77e190a5795815ba0c |
# deprecated, please use the `filelock` package instead\n\nfrom filelock import ( # noqa: F401 # imported for backward compatibility TODO: remove in 3.0.0\n BaseFileLock,\n SoftFileLock,\n Timeout,\n UnixFileLock,\n WindowsFileLock,\n)\n\nfrom ._filelock import FileLock # noqa: F401 # imported for back... | .venv\Lib\site-packages\datasets\utils\filelock.py | filelock.py | Python | 352 | 0.95 | 0.181818 | 0.111111 | vue-tools | 4 | 2023-09-28T09:09:20.886429 | MIT | false | 4f7728792acbd9a7a8a5bdf0bd38af31 |
from functools import partial\n\nfrom huggingface_hub import hf_hub_url\nfrom huggingface_hub.utils import get_session, hf_raise_for_status\n\n\nhf_dataset_url = partial(hf_hub_url, repo_type="dataset")\n\n\ndef check_auth(hf_api, repo_id, token=None):\n headers = hf_api._build_hf_headers(token=token)\n path = f"... | .venv\Lib\site-packages\datasets\utils\hub.py | hub.py | Python | 438 | 0.85 | 0.071429 | 0 | react-lib | 1 | 2025-05-27T00:32:34.379058 | GPL-3.0 | false | 56935fee68242dcc83d87690c39a1b7a |
import enum\nimport os\nfrom typing import Optional\n\nfrom huggingface_hub.utils import insecure_hashlib\n\nfrom .. import config\nfrom ..exceptions import (\n ExpectedMoreDownloadedFilesError,\n ExpectedMoreSplitsError,\n NonMatchingChecksumError,\n NonMatchingSplitsSizesError,\n UnexpectedDownloadedFi... | .venv\Lib\site-packages\datasets\utils\info_utils.py | info_utils.py | Python | 4,330 | 0.85 | 0.226415 | 0 | react-lib | 335 | 2025-01-31T07:45:04.637876 | GPL-3.0 | false | dbf4e5a02461c5f9efe8c379ab24f5a3 |
# Copyright 2020 Optuna, Hugging Face\n#\n# Licensed under the Apache License, Version 2.0 (the "License");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agree... | .venv\Lib\site-packages\datasets\utils\logging.py | logging.py | Python | 5,382 | 0.95 | 0.151685 | 0.113636 | python-kit | 371 | 2025-03-29T12:11:18.529632 | Apache-2.0 | false | cbb648957dce0236940b9a4bee9df00b |
import re\nimport textwrap\nfrom collections import Counter\nfrom itertools import groupby\nfrom operator import itemgetter\nfrom typing import Any, ClassVar, Optional\n\nimport yaml\nfrom huggingface_hub import DatasetCardData\n\nfrom ..config import METADATA_CONFIGS_FIELD\nfrom ..features import Features\nfrom ..info... | .venv\Lib\site-packages\datasets\utils\metadata.py | metadata.py | Python | 9,367 | 0.95 | 0.197425 | 0.019324 | vue-tools | 175 | 2024-11-08T08:30:43.833907 | Apache-2.0 | false | a7d73b64420f271b7a534676b1867a5c |
from importlib import import_module\n\nfrom .logging import get_logger\n\n\nlogger = get_logger(__name__)\n\n\nclass _PatchedModuleObj:\n """Set all the modules components as attributes of the _PatchedModuleObj object."""\n\n def __init__(self, module, attrs=None):\n attrs = attrs or []\n if module ... | .venv\Lib\site-packages\datasets\utils\patching.py | patching.py | Python | 4,955 | 0.95 | 0.260504 | 0.183673 | node-utils | 438 | 2023-07-23T12:05:49.894627 | Apache-2.0 | false | 5ca94d2c74556c0fb36f6191a3c2eeb7 |
# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the "License");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0... | .venv\Lib\site-packages\datasets\utils\py_utils.py | py_utils.py | Python | 28,088 | 0.95 | 0.287634 | 0.081037 | node-utils | 460 | 2024-01-15T20:27:35.177982 | BSD-3-Clause | false | 8ffdbe7fd26af6b7fa39c825f805de63 |
import numpy as np\n\n\ndef _number_of_shards_in_gen_kwargs(gen_kwargs: dict) -> int:\n """Return the number of possible shards according to the input gen_kwargs"""\n # Having lists of different sizes makes sharding ambigious, raise an error in this case\n # until we decide how to define sharding without ambig... | .venv\Lib\site-packages\datasets\utils\sharding.py | sharding.py | Python | 4,215 | 0.95 | 0.326087 | 0.088608 | react-lib | 778 | 2025-06-22T22:38:51.543802 | BSD-3-Clause | false | c04975e8d52b004273f9c1894a3809e3 |
import numpy as np\n\n\ndef approximate_mode(class_counts, n_draws, rng):\n """Computes approximate mode of multivariate hypergeometric.\n This is an approximation to the mode of the multivariate\n hypergeometric given by class_counts and n_draws.\n It shouldn't be off by more than one.\n It is the mostl... | .venv\Lib\site-packages\datasets\utils\stratify.py | stratify.py | Python | 4,085 | 0.95 | 0.158879 | 0.11828 | awesome-app | 209 | 2024-11-08T22:05:37.947285 | BSD-3-Clause | false | f2ca9aa9ab6ff2f65bde281367fc6c54 |
"""Utility helpers to handle progress bars in `datasets`.\n\nExample:\n 1. Use `datasets.utils.tqdm` as you would use `tqdm.tqdm` or `tqdm.auto.tqdm`.\n 2. To disable progress bars, either use `disable_progress_bars()` helper or set the\n environment variable `HF_DATASETS_DISABLE_PROGRESS_BARS` to 1.\n 3... | .venv\Lib\site-packages\datasets\utils\tqdm.py | tqdm.py | Python | 4,303 | 0.95 | 0.145038 | 0.131313 | vue-tools | 297 | 2024-07-14T02:21:17.921517 | Apache-2.0 | false | 77b3b4a5abbb8bee55244770afcaef52 |
from collections.abc import Iterable, Iterator\n\n\nclass tracked_str(str):\n origins = {}\n\n def set_origin(self, origin: str):\n if super().__repr__() not in self.origins:\n self.origins[super().__repr__()] = origin\n\n def get_origin(self):\n return self.origins.get(super().__repr_... | .venv\Lib\site-packages\datasets\utils\track.py | track.py | Python | 1,838 | 0.85 | 0.344262 | 0 | node-utils | 727 | 2024-04-23T20:03:56.902912 | GPL-3.0 | false | 38eac53be1db4892b54fa649bd278547 |
import os\nfrom typing import TypeVar, Union\n\n\nT = TypeVar("T")\n\nListLike = Union[list[T], tuple[T, ...]]\nNestedDataStructureLike = Union[T, list[T], dict[str, T]]\nPathLike = Union[str, bytes, os.PathLike]\n | .venv\Lib\site-packages\datasets\utils\typing.py | typing.py | Python | 205 | 0.85 | 0 | 0 | vue-tools | 651 | 2024-10-30T10:49:56.427454 | MIT | false | 37c97f866fda3b7b415c0ebcc49d2679 |
# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the "License");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0... | .venv\Lib\site-packages\datasets\utils\version.py | version.py | Python | 3,281 | 0.95 | 0.198113 | 0.168675 | node-utils | 842 | 2023-12-28T16:05:55.694932 | GPL-3.0 | false | 7010052c584b0e9d1d666f7670287137 |
from typing import Any, Optional, Union\n\nfrom huggingface_hub.utils import get_session\n\nfrom .. import config\nfrom ..exceptions import DatasetsError\nfrom .file_utils import (\n get_authentication_headers_for_url,\n)\nfrom .logging import get_logger\n\n\nlogger = get_logger(__name__)\n\n\nclass DatasetViewerErr... | .venv\Lib\site-packages\datasets\utils\_dataset_viewer.py | _dataset_viewer.py | Python | 4,397 | 0.95 | 0.2 | 0 | react-lib | 14 | 2023-07-20T22:00:31.244779 | MIT | false | 6d7e823b4d7fb0e06170dfc39c66f269 |
# Copyright 2023 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the "License");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | .venv\Lib\site-packages\datasets\utils\_dill.py | _dill.py | Python | 17,136 | 0.95 | 0.172043 | 0.15099 | react-lib | 165 | 2024-07-28T14:08:08.097214 | GPL-3.0 | false | a4cff26892e3441a6f7b15d6969fee6f |
# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the "License");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0... | .venv\Lib\site-packages\datasets\utils\__init__.py | __init__.py | Python | 999 | 0.95 | 0.04 | 0.541667 | react-lib | 357 | 2024-11-29T10:58:19.285600 | GPL-3.0 | false | 5ca42946cb0fd4f45c59758a2babdb28 |
{\n "language": [\n "found",\n "crowdsourced",\n "expert-generated",\n "machine-generated",\n "other"\n ],\n "annotations": [\n "found",\n "crowdsourced",\n "expert-generated",\n "machine-generated",\n "no-annotation",\n "other"\n ]\n}\n | .venv\Lib\site-packages\datasets\utils\resources\creators.json | creators.json | JSON | 257 | 0.7 | 0 | 0 | node-utils | 170 | 2024-03-09T08:43:00.482550 | Apache-2.0 | false | e7bc442ebd7062d9314aa2b751d67cae |
{\n "monolingual": "contains a single language",\n "multilingual": "contains multiple languages",\n "translation": "contains translated or aligned text",\n "other": "other type of language distribution"\n}\n | .venv\Lib\site-packages\datasets\utils\resources\multilingualities.json | multilingualities.json | JSON | 205 | 0.7 | 0 | 0 | node-utils | 888 | 2024-09-21T22:39:21.590377 | Apache-2.0 | false | f4c67c7a1c0c630672ea0bff0b72f15b |
name: "" # Filename comes here\nallow_empty: false\nallow_empty_text: true\nsubsections:\n - name: "Dataset Card for X" # First-level markdown heading\n allow_empty: false\n allow_empty_text: true\n subsections:\n - name: "Table of Contents"\n allow_empty: false\n allow_empty_text: false\n ... | .venv\Lib\site-packages\datasets\utils\resources\readme_structure.yaml | readme_structure.yaml | YAML | 3,877 | 0.8 | 0.017241 | 0 | python-kit | 280 | 2025-03-02T19:47:22.375332 | Apache-2.0 | false | 9760c66299752d0d20a99b18ebd150ff |
[\n "unknown",\n "n<1K",\n "1K<n<10K",\n "10K<n<100K",\n "100K<n<1M",\n "1M<n<10M",\n "10M<n<100M",\n "100M<n<1B",\n "1B<n<10B",\n "10B<n<100B",\n "100B<n<1T",\n "n>1T"\n]\n | .venv\Lib\site-packages\datasets\utils\resources\size_categories.json | size_categories.json | JSON | 171 | 0.7 | 0 | 0 | python-kit | 733 | 2024-04-05T14:43:25.750949 | GPL-3.0 | false | 31e4973e2def155cb0d39d0066fc7d46 |
\n\n | .venv\Lib\site-packages\datasets\utils\resources\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 199 | 0.7 | 0 | 0 | vue-tools | 933 | 2023-11-29T19:25:35.113555 | GPL-3.0 | false | bb8ececf16e685ec86547d61dee8c622 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\deprecation_utils.cpython-313.pyc | deprecation_utils.cpython-313.pyc | Other | 5,266 | 0.95 | 0.106383 | 0 | python-kit | 937 | 2024-07-28T22:40:22.189618 | MIT | false | f4d87ee362fef226da458a79581d96a9 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\doc_utils.cpython-313.pyc | doc_utils.cpython-313.pyc | Other | 763 | 0.85 | 0.125 | 0 | react-lib | 944 | 2024-10-03T07:11:42.303057 | GPL-3.0 | false | 0bb7bb230e43c67dac68d8a8d4e4c514 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\experimental.cpython-313.pyc | experimental.cpython-313.pyc | Other | 1,555 | 0.95 | 0.096774 | 0 | vue-tools | 122 | 2024-01-17T22:43:07.857893 | BSD-3-Clause | false | 76fc683d49b32a2e957487ff7cee6179 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\extract.cpython-313.pyc | extract.cpython-313.pyc | Other | 21,492 | 0.95 | 0.004587 | 0.02439 | vue-tools | 62 | 2024-05-14T18:40:57.102829 | GPL-3.0 | false | 16da48b17f2611555642b61f6767a931 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\filelock.cpython-313.pyc | filelock.cpython-313.pyc | Other | 384 | 0.7 | 0 | 0 | python-kit | 168 | 2024-05-19T20:44:14.569260 | GPL-3.0 | false | 5402bcbf69fed6a3db0f5349192da74b |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\file_utils.cpython-313.pyc | file_utils.cpython-313.pyc | Other | 67,134 | 0.75 | 0.068613 | 0.013378 | vue-tools | 534 | 2025-02-09T20:34:11.164668 | MIT | false | 7a1a65b91fa9d9f921fba2d2cf8e772e |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\hub.cpython-313.pyc | hub.cpython-313.pyc | Other | 876 | 0.7 | 0 | 0 | node-utils | 239 | 2024-03-06T10:15:49.214642 | MIT | false | 49f0d3a72bdae10ef1708f09b728a9bf |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\info_utils.cpython-313.pyc | info_utils.cpython-313.pyc | Other | 6,086 | 0.8 | 0.039474 | 0 | node-utils | 779 | 2023-07-18T16:58:19.024516 | Apache-2.0 | false | 2768decd066b7c28c72f074bfb6f44dd |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\logging.cpython-313.pyc | logging.cpython-313.pyc | Other | 6,371 | 0.95 | 0.103896 | 0 | vue-tools | 934 | 2023-11-11T09:47:05.022731 | MIT | false | 4483e940a60197d1e2094105ee4e8e91 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\metadata.cpython-313.pyc | metadata.cpython-313.pyc | Other | 11,751 | 0.8 | 0 | 0 | python-kit | 449 | 2023-07-23T06:34:36.290699 | MIT | false | 50a45468e1fff7a37040680d624c0847 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\patching.cpython-313.pyc | patching.cpython-313.pyc | Other | 5,788 | 0.95 | 0 | 0 | react-lib | 558 | 2024-08-26T22:58:42.599669 | Apache-2.0 | false | d1ae49823c4e14188b8a8bb6164464a7 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\py_utils.cpython-313.pyc | py_utils.cpython-313.pyc | Other | 37,658 | 0.95 | 0.080605 | 0.005571 | python-kit | 774 | 2024-01-23T15:06:50.107810 | GPL-3.0 | false | 139935fc426e726c5f88ed355c1851fa |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\sharding.cpython-313.pyc | sharding.cpython-313.pyc | Other | 5,473 | 0.8 | 0.027027 | 0 | awesome-app | 957 | 2024-04-04T08:05:56.109727 | MIT | false | e84a68fd6ee106b324d33552db13293d |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\stratify.cpython-313.pyc | stratify.cpython-313.pyc | Other | 4,422 | 0.95 | 0.070423 | 0 | node-utils | 444 | 2024-02-19T16:38:17.368345 | MIT | false | 3e5f9d545558e791bb154c47a0165586 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\tf_utils.cpython-313.pyc | tf_utils.cpython-313.pyc | Other | 25,332 | 0.95 | 0.041494 | 0 | python-kit | 189 | 2025-01-04T08:31:57.453551 | GPL-3.0 | false | e42abe3ea2decda6906866df285b9421 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\tqdm.cpython-313.pyc | tqdm.cpython-313.pyc | Other | 4,549 | 0.95 | 0.064516 | 0.064935 | react-lib | 690 | 2023-09-23T17:12:32.432312 | GPL-3.0 | false | f59e4f681010d35a345bd05220813e62 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\track.cpython-313.pyc | track.cpython-313.pyc | Other | 4,352 | 0.95 | 0.083333 | 0 | node-utils | 794 | 2024-12-01T07:39:42.174180 | BSD-3-Clause | false | 142b339a571db001d6760751d0dc97fb |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\typing.cpython-313.pyc | typing.cpython-313.pyc | Other | 547 | 0.7 | 0 | 0 | node-utils | 680 | 2023-11-29T00:49:42.706692 | GPL-3.0 | false | 5f3c1a5704b84d5f1432dbe8d9362669 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\version.cpython-313.pyc | version.cpython-313.pyc | Other | 5,477 | 0.8 | 0 | 0 | vue-tools | 901 | 2024-12-28T12:02:11.596016 | MIT | false | af315c00a1c95bd46ab1ac48d96c94a6 |
\n\n | .venv\Lib\site-packages\datasets\utils\__pycache__\_dataset_viewer.cpython-313.pyc | _dataset_viewer.cpython-313.pyc | Other | 5,071 | 0.8 | 0.074074 | 0 | python-kit | 804 | 2024-04-07T15:36:37.625106 | BSD-3-Clause | false | b0526d9f07645cfe4443ff32d38ae566 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.