Repository Analysis

huggingface/datasets

🤗 The largest hub of ready-to-use datasets for AI models with fast, easy-to-use and efficient data manipulation tools

22.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of huggingface/datasets, a Python project with 21,792 GitHub stars. SynthScan v2.0 examined 91,211 lines of code across 274 source files, recording 1875 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 22.3 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

22.3
Adjusted Score
22.3
Raw Score
100%
Time Factor
2026-07-31
Last Push
21.8K
Stars
Python
Language
91.2K
Lines of Code
274
Files
1.9K
Pattern Hits
2026-08-02
Scan Date
0.18
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 50MEDIUM 79LOW 1746

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1875 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1201 hits · 1043 pts
SeverityFileLineSnippetContext
LOWtests/test_streaming_download_manager.py30def test_streaming_dl_manager_download_dummy_path():CODE
LOWtests/test_streaming_download_manager.py36def test_streaming_dl_manager_download_dummy_url():CODE
LOWtests/test_streaming_download_manager.py51def test_streaming_dl_manager_extract_throws(urlpath):CODE
LOWtests/test_streaming_download_manager.py56def test_streaming_dl_manager_download(text_path):CODE
LOWtests/test_streaming_download_manager.py64def test_streaming_dl_manager_download_and_extract_no_extraction_dummy_path():CODE
LOWtests/test_streaming_download_manager.py70def test_streaming_dl_manager_download_and_extract_no_extraction_dummy_url():CODE
LOWtests/test_streaming_download_manager.py76def test_streaming_dl_manager_extract(text_gz_path, text_path):CODE
LOWtests/test_streaming_download_manager.py88def test_iter_files_in_archive(archive_jsonl, request):CODE
LOWtests/test_streaming_download_manager.py96def test_streaming_dl_manager_download_and_extract_with_extraction(text_gz_path, text_path):CODE
LOWtests/test_streaming_download_manager.py111def test_streaming_dl_manager_download_and_extract_with_join(input_path, filename, expected_path):CODE
LOWtests/test_streaming_download_manager.py119def test_streaming_dl_manager_extract_all_supported_single_file_compression_types(CODE
LOWtests/test_streaming_download_manager.py143def test_streaming_gg_drive_no_extract():CODE
LOWtests/test_streaming_download_manager.py151def test_streaming_gg_drive_gzipped():CODE
LOWtests/test_streaming_download_manager.py159def test_streaming_gg_drive_zipped():CODE
LOWtests/test_dataset_list.py27 def test_list_dict_equivalent(self):CODE
LOWtests/test_dataset_list.py39 def test_variable_list_records(self): # checks if the type can be inferred from the second recordCODE
LOWtests/test_fingerprint.py162 def test_recurse_hash_for_class(self):CODE
LOWtests/test_fingerprint.py169 def test_recurse_hash_for_method(self):CODE
LOWtests/test_fingerprint.py176 def test_hash_ipython_function(self):CODE
LOWtests/test_fingerprint.py113 def test_hash_tokenizer_with_cache(self):CODE
LOWtests/test_fingerprint.py137 def test_recurse_hash_for_function(self):CODE
LOWtests/test_fingerprint.py150 def test_hash_ignores_line_definition_of_function(self):CODE
LOWtests/test_fingerprint.py204 def test_recurse_hash_for_function_with_shuffled_globals(self):CODE
LOWtests/test_fingerprint.py242 def test_hash_arrow_table_is_independent_of_chunking(self):CODE
LOWtests/test_fingerprint.py300 def test_set_doesnt_depend_on_order(self):CODE
LOWtests/test_fingerprint.py311 def test_hash_tiktoken_encoding(self):CODE
LOWtests/test_fingerprint.py339 def test_hash_torch_generator(self):CODE
LOWtests/test_fingerprint.py367 def test_hash_torch_compiled_function(self):CODE
LOWtests/test_fingerprint.py380 def test_hash_torch_compiled_module(self):CODE
LOWtests/test_fingerprint.py396def test_move_script_doesnt_change_hash(tmp_path: Path):CODE
LOWtests/test_fingerprint.py421def test_fingerprint_in_multiprocessing():CODE
LOWtests/test_fingerprint.py432def test_temp_cache_dir_with_tmpdir_nonexistent(tmp_path, caplog):CODE
LOWtests/test_fingerprint.py480def test_temp_cache_dir_with_tmpdir_existing(tmp_path, monkeypatch):CODE
LOWtests/test_fingerprint.py500def test_temp_cache_dir_without_tmpdir(monkeypatch):CODE
LOWtests/test_fingerprint.py521def test_temp_cache_dir_tmpdir_creation_failure(tmp_path, monkeypatch, caplog):CODE
LOWtests/test_fingerprint.py543def test_temp_cache_dir_tmpdir_not_directory(tmp_path, monkeypatch):CODE
LOWtests/test_fingerprint.py560def test_fingerprint_when_transform_version_changes():CODE
LOWtests/test_version.py19def test_version_equality_and_hash(other, expected_equality):CODE
LOWtests/conftest.py11def pytest_collection_modifyitems(config, items):CODE
LOWtests/conftest.py45def set_update_download_counts_to_false(monkeypatch):CODE
LOWtests/conftest.py51def set_sqlalchemy_silence_uber_warning(monkeypatch):CODE
LOWtests/conftest.py61def zero_time_out_for_remote_code():CODE
LOWtests/test_sharding_utils.py48def test_number_of_shards_in_gen_kwargs(gen_kwargs, expected):CODE
LOWtests/test_patching.py72def test_patch_submodule_builtin():CODE
LOWtests/test_patching.py86def test_patch_submodule_missing():CODE
LOWtests/test_patching.py93def test_patch_submodule_missing_builtin():CODE
LOWtests/test_patching.py104def test_patch_submodule_start_and_stop():CODE
LOWtests/test_patching.py114def test_patch_submodule_successive():CODE
LOWtests/test_patching.py146def test_patch_submodule_doesnt_exist():CODE
LOWtests/test_arrow_dataset.py109def picklable_map_function_with_indices(x, i):CODE
LOWtests/test_arrow_dataset.py113def picklable_map_function_with_rank(x, r):CODE
LOWtests/test_arrow_dataset.py117def picklable_map_function_with_indices_and_rank(x, i, r):CODE
LOWtests/test_arrow_dataset.py121def picklable_filter_function(x):CODE
LOWtests/test_arrow_dataset.py125def picklable_filter_function_with_rank(x, r):CODE
LOWtests/test_arrow_dataset.py129def assert_arrow_metadata_are_synced_with_dataset_features(dataset: Dataset):CODE
LOWtests/test_arrow_dataset.py1716 def func_return_multi_row_pd_dataframe(x):CODE
LOWtests/test_arrow_dataset.py1724 def test_map_return_pl_dataframe(self, in_memory):CODE
LOWtests/test_arrow_dataset.py1727 def func_return_single_row_pl_dataframe(x):CODE
LOWtests/test_arrow_dataset.py5058def test_dataset_from_dict_with_large_list():CODE
LOWtests/test_arrow_dataset.py5066def test_dataset_save_to_disk_with_large_list(tmp_path):CODE
1141 more matches not shown…
Decorative Section Separators52 hits · 177 pts
SeverityFileLineSnippetContext
MEDIUMtests/packaged_modules/test_tsfile.py266# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py268# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py307# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py309# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py357# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py359# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py486# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py488# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py576# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py578# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py615# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py617# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py633# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py635# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py648# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py650# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py663# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py665# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py678# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py680# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py42# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py44# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py224# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py226# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py455# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py457# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py538# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py540# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py709# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/packaged_modules/test_tsfile.py711# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py93# ┌───────────┐COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py95# └───────────┘COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py139# ┌────────────┐COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py141# └────────────┘COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py184# ┌───────────────────┐COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py186# └───────────────────┘COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py207# ┌───────────┐COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py209# └───────────┘COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py294# ┌─────────────┐COMMENT
MEDIUMsrc/datasets/packaged_modules/hdf5/hdf5.py296# └─────────────┘COMMENT
MEDIUMsrc/datasets/packaged_modules/tsfile/tsfile.py52# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/datasets/packaged_modules/tsfile/tsfile.py54# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/datasets/packaged_modules/tsfile/tsfile.py137# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/datasets/packaged_modules/tsfile/tsfile.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/datasets/packaged_modules/tsfile/tsfile.py211# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/datasets/packaged_modules/tsfile/tsfile.py213# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/datasets/packaged_modules/tsfile/tsfile.py228# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/datasets/packaged_modules/tsfile/tsfile.py230# ---------------------------------------------------------------------------COMMENT
Unused Imports178 hits · 164 pts
SeverityFileLineSnippetContext
LOWtests/utils.py82CODE
LOWtests/utils.py96CODE
LOWtests/utils.py110CODE
LOWtests/utils.py124CODE
LOWtests/utils.py138CODE
LOWtests/utils.py286CODE
LOWtests/utils.py301CODE
LOWtests/utils.py316CODE
LOWtests/utils.py331CODE
LOWtests/utils.py346CODE
LOWtests/utils.py361CODE
LOWtests/utils.py376CODE
LOWtests/_test_patching.py3CODE
LOWtests/_test_patching.py4CODE
LOWtests/_test_patching.py5CODE
LOWtests/_test_patching.py6CODE
LOWtests/_test_patching.py7CODE
LOWtests/_test_patching.py8CODE
LOWtests/packaged_modules/test_tsfile.py3CODE
LOWsrc/datasets/arrow_dataset.py156CODE
LOWsrc/datasets/arrow_dataset.py159CODE
LOWsrc/datasets/arrow_dataset.py160CODE
LOWsrc/datasets/iterable_dataset.py91CODE
LOWsrc/datasets/iterable_dataset.py94CODE
LOWsrc/datasets/__init__.py17CODE
LOWsrc/datasets/__init__.py17CODE
LOWsrc/datasets/__init__.py18CODE
LOWsrc/datasets/__init__.py19CODE
LOWsrc/datasets/__init__.py19CODE
LOWsrc/datasets/__init__.py19CODE
LOWsrc/datasets/__init__.py19CODE
LOWsrc/datasets/__init__.py20CODE
LOWsrc/datasets/__init__.py20CODE
LOWsrc/datasets/__init__.py21CODE
LOWsrc/datasets/__init__.py21CODE
LOWsrc/datasets/__init__.py22CODE
LOWsrc/datasets/__init__.py23CODE
LOWsrc/datasets/__init__.py24CODE
LOWsrc/datasets/__init__.py24CODE
LOWsrc/datasets/__init__.py24CODE
LOWsrc/datasets/__init__.py25CODE
LOWsrc/datasets/__init__.py26CODE
LOWsrc/datasets/__init__.py26CODE
LOWsrc/datasets/__init__.py26CODE
LOWsrc/datasets/__init__.py26CODE
LOWsrc/datasets/__init__.py26CODE
LOWsrc/datasets/__init__.py33CODE
LOWsrc/datasets/__init__.py33CODE
LOWsrc/datasets/__init__.py34CODE
LOWsrc/datasets/__init__.py34CODE
LOWsrc/datasets/__init__.py34CODE
LOWsrc/datasets/__init__.py35CODE
LOWsrc/datasets/__init__.py35CODE
LOWsrc/datasets/__init__.py35CODE
LOWsrc/datasets/__init__.py35CODE
LOWsrc/datasets/__init__.py35CODE
LOWsrc/datasets/__init__.py35CODE
LOWsrc/datasets/__init__.py35CODE
LOWsrc/datasets/__init__.py35CODE
LOWsrc/datasets/__init__.py35CODE
118 more matches not shown…
Deep Nesting202 hits · 154 pts
SeverityFileLineSnippetContext
LOWtests/test_arrow_dataset.py155CODE
LOWtests/test_arrow_dataset.py591CODE
LOWtests/test_arrow_dataset.py938CODE
LOWtests/test_arrow_dataset.py1001CODE
LOWtests/test_arrow_dataset.py1074CODE
LOWtests/test_arrow_dataset.py1186CODE
LOWtests/test_arrow_dataset.py1322CODE
LOWtests/test_arrow_dataset.py1399CODE
LOWtests/test_arrow_dataset.py1407CODE
LOWtests/test_arrow_dataset.py1414CODE
LOWtests/test_arrow_dataset.py1435CODE
LOWtests/test_arrow_dataset.py1513CODE
LOWtests/test_arrow_dataset.py1866CODE
LOWtests/test_arrow_dataset.py1983CODE
LOWtests/test_arrow_dataset.py1992CODE
LOWtests/test_arrow_dataset.py2007CODE
LOWtests/test_arrow_dataset.py2025CODE
LOWtests/test_arrow_dataset.py2069CODE
LOWtests/test_arrow_dataset.py2081CODE
LOWtests/test_arrow_dataset.py2102CODE
LOWtests/test_arrow_dataset.py2123CODE
LOWtests/test_arrow_dataset.py2145CODE
LOWtests/test_arrow_dataset.py2191CODE
LOWtests/test_arrow_dataset.py2220CODE
LOWtests/test_arrow_dataset.py2314CODE
LOWtests/test_arrow_dataset.py2333CODE
LOWtests/test_arrow_dataset.py2363CODE
LOWtests/test_arrow_dataset.py2398CODE
LOWtests/test_arrow_dataset.py2549CODE
LOWtests/test_arrow_dataset.py2581CODE
LOWtests/test_arrow_dataset.py2599CODE
LOWtests/test_arrow_dataset.py2630CODE
LOWtests/test_arrow_dataset.py2898CODE
LOWtests/test_arrow_dataset.py4554CODE
LOWtests/test_arrow_reader.py200CODE
LOWtests/test_extract.py33CODE
LOWtests/test_extract.py94CODE
LOWtests/test_dataset_dict.py316CODE
LOWtests/features/test_features.py521CODE
LOWtests/features/test_array_xd.py34CODE
LOWtests/packaged_modules/test_tsfile.py52CODE
LOWtests/commands/test_test.py34CODE
LOWbenchmarks/utils.py22CODE
LOWsrc/datasets/arrow_dataset.py6660CODE
LOWsrc/datasets/arrow_dataset.py6897CODE
LOWsrc/datasets/arrow_dataset.py7031CODE
LOWsrc/datasets/arrow_dataset.py7145CODE
LOWsrc/datasets/arrow_dataset.py7303CODE
LOWsrc/datasets/arrow_dataset.py7361CODE
LOWsrc/datasets/arrow_dataset.py248CODE
LOWsrc/datasets/arrow_dataset.py1790CODE
LOWsrc/datasets/arrow_dataset.py3214CODE
LOWsrc/datasets/arrow_dataset.py3669CODE
LOWsrc/datasets/arrow_dataset.py4514CODE
LOWsrc/datasets/arrow_dataset.py4971CODE
LOWsrc/datasets/arrow_dataset.py5720CODE
LOWsrc/datasets/arrow_dataset.py5888CODE
LOWsrc/datasets/arrow_dataset.py3927CODE
LOWsrc/datasets/data_files.py121CODE
LOWsrc/datasets/data_files.py257CODE
142 more matches not shown…
Cross-File Repetition26 hits · 130 pts
SeverityFileLineSnippetContext
HIGHsrc/datasets/io/parquet.py0writes the pyarrow table as json lines to a binary file handle. caller is responsible for opening and closing the handleSTRING
HIGHsrc/datasets/io/csv.py0writes the pyarrow table as json lines to a binary file handle. caller is responsible for opening and closing the handleSTRING
HIGHsrc/datasets/io/json.py0writes the pyarrow table as json lines to a binary file handle. caller is responsible for opening and closing the handleSTRING
HIGHsrc/datasets/features/pdf.py0decode example image file into image data. args: value (`str` or `dict`): a string with the absolute image file path, a STRING
HIGHsrc/datasets/features/nifti.py0decode example image file into image data. args: value (`str` or `dict`): a string with the absolute image file path, a STRING
HIGHsrc/datasets/features/video.py0decode example image file into image data. args: value (`str` or `dict`): a string with the absolute image file path, a STRING
HIGHsrc/datasets/features/image.py0decode example image file into image data. args: value (`str` or `dict`): a string with the absolute image file path, a STRING
HIGHsrc/datasets/features/pdf.py0if in the decodable state, return the feature itself, otherwise flatten the feature into a dictionary.STRING
HIGHsrc/datasets/features/mesh.py0if in the decodable state, return the feature itself, otherwise flatten the feature into a dictionary.STRING
HIGHsrc/datasets/features/nifti.py0if in the decodable state, return the feature itself, otherwise flatten the feature into a dictionary.STRING
HIGHsrc/datasets/features/video.py0if in the decodable state, return the feature itself, otherwise flatten the feature into a dictionary.STRING
HIGHsrc/datasets/features/image.py0if in the decodable state, return the feature itself, otherwise flatten the feature into a dictionary.STRING
HIGHsrc/datasets/features/pdf.py0cast an arrow array to the image arrow storage type. the arrow types that can be converted to the image pyarrow storage STRING
HIGHsrc/datasets/features/mesh.py0cast an arrow array to the image arrow storage type. the arrow types that can be converted to the image pyarrow storage STRING
HIGHsrc/datasets/features/audio.py0cast an arrow array to the image arrow storage type. the arrow types that can be converted to the image pyarrow storage STRING
HIGHsrc/datasets/features/nifti.py0cast an arrow array to the image arrow storage type. the arrow types that can be converted to the image pyarrow storage STRING
HIGHsrc/datasets/features/video.py0cast an arrow array to the image arrow storage type. the arrow types that can be converted to the image pyarrow storage STRING
HIGHsrc/datasets/features/image.py0cast an arrow array to the image arrow storage type. the arrow types that can be converted to the image pyarrow storage STRING
HIGHsrc/datasets/features/pdf.py0embed image files into the arrow array. args: storage (`pa.structarray`): pyarrow array to embed. token_per_repo_id (`diSTRING
HIGHsrc/datasets/features/audio.py0embed image files into the arrow array. args: storage (`pa.structarray`): pyarrow array to embed. token_per_repo_id (`diSTRING
HIGHsrc/datasets/features/nifti.py0embed image files into the arrow array. args: storage (`pa.structarray`): pyarrow array to embed. token_per_repo_id (`diSTRING
HIGHsrc/datasets/features/video.py0embed image files into the arrow array. args: storage (`pa.structarray`): pyarrow array to embed. token_per_repo_id (`diSTRING
HIGHsrc/datasets/features/image.py0embed image files into the arrow array. args: storage (`pa.structarray`): pyarrow array to embed. token_per_repo_id (`diSTRING
HIGHsrc/datasets/packaged_modules/conll/conll.py0the `data_files` kwarg in load_dataset() can be a str, list[str], dict[str,str], or dict[str,list[str]]. if str or list[STRING
HIGHsrc/datasets/packaged_modules/xml/xml.py0the `data_files` kwarg in load_dataset() can be a str, list[str], dict[str,str], or dict[str,list[str]]. if str or list[STRING
HIGHsrc/datasets/packaged_modules/text/text.py0the `data_files` kwarg in load_dataset() can be a str, list[str], dict[str,str], or dict[str,list[str]]. if str or list[STRING
Docstring Block Structure15 hits · 75 pts
SeverityFileLineSnippetContext
HIGHsrc/datasets/arrow_dataset.py1000 Convert `dict` to a `pyarrow.Table` to create a [`Dataset`]. Important: a dataset created with from_diSTRING
HIGHsrc/datasets/arrow_dataset.py1166 Convert a list of dicts to a `pyarrow.Table` to create a [`Dataset`]`. Note that the keys of the firstSTRING
HIGHsrc/datasets/data_files.py307 Resolve the paths and URLs of the data files from the pattern passed by the user. You can use patterns to resoSTRING
HIGHsrc/datasets/iterable_dataset.py3061 Create an IterableDataset from a polars DataFrame or LazyFrame. Iterating over the dataset is mostly zSTRING
HIGHsrc/datasets/iterable_dataset.py4299 Enable or disable the dataset features decoding for audio, image, video. When enabled (default), mediaSTRING
HIGHsrc/datasets/arrow_reader.py538Creates a `ReadInstruction` instance out of a string spec. Args: spec (`str`): SpliSTRING
HIGHsrc/datasets/table.py136 Return the position i of a sorted array so that arr[i] <= x < arr[i+1] Args: arr (`List[int]`): non-emSTRING
HIGHsrc/datasets/table.py654 Drop one or more columns and return a new table. Args: columns (`List[str]`): STRING
HIGHsrc/datasets/table.py731 Convert pandas.DataFrame to an Arrow Table. The column types in the resulting Arrow Table are inferredSTRING
HIGHsrc/datasets/table.py1019 Drop one or more columns and return a new table. Args: columns (`List[str]`): STRING
HIGHsrc/datasets/table.py1296 Drop one or more columns and return a new table. Args: columns (`List[str]`): STRING
HIGHsrc/datasets/table.py1772 Drop one or more columns and return a new table. Args: columns (`List[str]`): STRING
HIGHsrc/datasets/table.py1910Improved version of `pa.Array.cast` It supports casting `pa.StructArray` objects to re-order the fields. It alsSTRING
HIGHsrc/datasets/table.py2023Cast an array to the arrow type that corresponds to the requested feature type. For custom features like [`Audio`] oSTRING
HIGHsrc/datasets/table.py2169Embed data into an arrays's storage. For custom features like Audio or Image, it takes into account the "embed_storaSTRING
Self-Referential Comments20 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_fingerprint.py547 # Create a regular file and point TMPDIR to itCOMMENT
MEDIUMtests/test_arrow_dataset.py4871 # Create a simple DatasetCOMMENT
MEDIUMtests/test_arrow_dataset.py4922 # Create a Dataset with a column to group byCOMMENT
MEDIUMtests/test_arrow_dataset.py5004 # Create a dataset where one category has more elements than batch_sizeCOMMENT
MEDIUMtests/test_iterable_dataset.py2990 # Create a simple IterableDatasetCOMMENT
MEDIUMtests/test_iterable_dataset.py3073 # Create a Dataset with a column to group byCOMMENT
MEDIUMtests/test_iterable_dataset.py3155 # Create a dataset where one category has more elements than batch_sizeCOMMENT
MEDIUMtests/packaged_modules/test_hdf5.py259 # Create a dataset with a zero dimensionCOMMENT
MEDIUMtests/packaged_modules/test_hdf5.py261 # Create a dataset with zero in the middle dimensionCOMMENT
MEDIUMtests/packaged_modules/test_hdf5.py263 # Create a dataset with zero in the last dimensionCOMMENT
MEDIUM.github/workflows/release-conda.yml34 # Create the build environmentCOMMENT
MEDIUMsrc/datasets/arrow_dataset.py2292 # Create the new featureCOMMENT
MEDIUMsrc/datasets/arrow_writer.py297 """This function is called when calling pa.array(typed_sequence)"""STRING
MEDIUMsrc/datasets/arrow_reader.py129 # Create the absolute instruction (per split)COMMENT
MEDIUMsrc/datasets/builder.py891 # Create a tmp dir and rename to self._output_dir on successful exit.COMMENT
MEDIUMsrc/datasets/builder.py1043 # Create a dataset for each of the given splitsCOMMENT
MEDIUMsrc/datasets/builder.py1167 # Create a dataset for each of the given splitsCOMMENT
MEDIUMsrc/datasets/splits.py240 # Create the slice for each of the elementsCOMMENT
MEDIUMsrc/datasets/load.py1695 # Create a dataset builderCOMMENT
MEDIUMsrc/datasets/formatting/formatting.py371 # Create a copy and avoid triggering descriptorsCOMMENT
Cross-Language Confusion9 hits · 48 pts
SeverityFileLineSnippetContext
HIGHsetup.py22 {"run": {"name": "Install `datasets@main`", "command": 'pip uninstall datasets -y && pip install "datasets @ git+STRING
HIGHtests/test_arrow_dataset.py3563 # Arrow null, not as the JSON string "null". Otherwise null_count is wrong and a missingCOMMENT
HIGHtests/test_table.py157 assert table.equals(in_memory_pa_table)CODE
HIGHtests/packaged_modules/test_json.py428 "arguments": json.dumps({"command": "pwd && date -u +%Y-%m-%dT%H:%M:%SZ"}),CODE
HIGHtests/packaged_modules/test_json.py163 "col_2": [null, 2, 20]STRING
HIGHsrc/datasets/table.py1957 # Ensure each null value in the array translates to [null] * pa_type.list_size in the array's valuesCOMMENT
HIGHsrc/datasets/table.py2087 # Ensure each null value in the array translates to [null] * pa_type.list_size in the array's vaCOMMENT
HIGHsrc/datasets/table.py266 return self.table.equals(*args, **kwargs)CODE
HIGHsrc/datasets/table.py484 return self.equals(other)CODE
Over-Commented Block35 hits · 34 pts
SeverityFileLineSnippetContext
LOWtests/test_data_files.py81 path.relative_to(*other)COMMENT
LOWutils/release.py1# Copyright 2021 The HuggingFace Team. All rights reserved.COMMENT
LOWsrc/datasets/arrow_dataset.py1# Copyright 2020 The HuggingFace Authors.COMMENT
LOWsrc/datasets/arrow_dataset.py7221 # Note that we only have 3 examples per dataset since the first dataset ran out of examplesCOMMENT
LOWsrc/datasets/naming.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/arrow_writer.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/__init__.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/arrow_reader.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/builder.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/inspect.py1# Copyright 2020 The HuggingFace Datasets Authors.COMMENT
LOWsrc/datasets/splits.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/load.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/info.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/features/features.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/features/features.py2021 raise TypeError(f"Expected a dict but got a {type(feature)}: {feature}")COMMENT
LOW…d_modules/folder_based_builder/folder_based_builder.py401 )COMMENT
LOW…c/datasets/packaged_modules/imagefolder/imagefolder.py21 BASE_COLUMN_NAME = "image"COMMENT
LOW…c/datasets/packaged_modules/audiofolder/audiofolder.py21 BASE_COLUMN_NAME = "audio"COMMENT
LOWsrc/datasets/utils/logging.py1# Copyright 2020 Optuna, Hugging FaceCOMMENT
LOWsrc/datasets/utils/version.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/utils/__init__.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/utils/py_utils.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/utils/_filelock.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/datasets/utils/_dill.py1# Copyright 2023 The HuggingFace Team. All rights reserved.COMMENT
LOWsrc/datasets/utils/_dill.py301 """COMMENT
LOWsrc/datasets/utils/_dill.py401 # Filenames of functions created in ipykernel the filenameCOMMENT
LOWsrc/datasets/utils/tf_utils.py1# Copyright 2022 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/download/download_manager.py1# Copyright 2020 The TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/formatting/polars_formatter.py1# Copyright 2020 The HuggingFace Authors.COMMENT
LOWsrc/datasets/formatting/__init__.py1# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.COMMENT
LOWsrc/datasets/formatting/formatting.py1# Copyright 2020 The HuggingFace Authors.COMMENT
LOWsrc/datasets/formatting/torch_formatter.py1# Copyright 2020 The HuggingFace Authors.COMMENT
LOWsrc/datasets/formatting/jax_formatter.py1# Copyright 2021 The HuggingFace Authors.COMMENT
LOWsrc/datasets/formatting/tf_formatter.py1# Copyright 2020 The HuggingFace Authors.COMMENT
LOWsrc/datasets/formatting/np_formatter.py1# Copyright 2020 The HuggingFace Authors.COMMENT
Fake / Example Data26 hits · 30 pts
SeverityFileLineSnippetContext
LOWtests/test_builder.py194 "dummy_kwarg_with_different_length": [f"dummy_data{i}.txt" for i in range(3)],CODE
LOWtests/test_builder.py215 "dummy_kwarg_with_different_length": [f"dummy_data{i}.txt" for i in range(3)],CODE
LOWtests/test_data_files.py27_FILES_TO_IGNORE = {".dummy", "README.md", "dummy_data.zip", "dataset_infos.json"}CODE
LOWtests/features/test_array_xd.py35 dummy_data = []CODE
LOWtests/features/test_array_xd.py54 dummy_data.append((i, example))CODE
LOWtests/features/test_array_xd.py56 return dummy_dataCODE
LOWtests/features/test_array_xd.py360@pytest.mark.parametrize("dtype, dummy_value", [("int32", 1), ("bool", True), ("float64", 1)])CODE
LOWtests/features/test_array_xd.py361def test_table_to_pandas(dtype, dummy_value):CODE
LOWtests/features/test_array_xd.py363 dataset = datasets.Dataset.from_dict({"foo": [[[dummy_value] * 2] * 2]}, features=features)CODE
LOWtests/features/test_array_xd.py367 np.testing.assert_equal(arr, np.array([[[dummy_value] * 2] * 2], dtype=np.dtype(dtype)))CODE
LOWtests/features/test_array_xd.py370@pytest.mark.parametrize("dtype, dummy_value", [("int32", 1), ("bool", True), ("float64", 1)])CODE
LOWtests/features/test_array_xd.py371def test_array_xd_numpy_arrow_extractor(dtype, dummy_value):CODE
LOWtests/features/test_array_xd.py373 dataset = datasets.Dataset.from_dict({"foo": [[[dummy_value] * 2] * 2]}, features=features)CODE
LOWtests/features/test_array_xd.py376 np.testing.assert_equal(arr, np.array([[[dummy_value] * 2] * 2], dtype=np.dtype(dtype)))CODE
LOWtests/packaged_modules/test_text.py19 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore maSTRING
LOWtests/packaged_modules/test_text.py19 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore maSTRING
LOWtests/packaged_modules/test_text.py25 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore maSTRING
LOWtests/packaged_modules/test_text.py25 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore maSTRING
LOWbenchmarks/utils.py23 dummy_data = []CODE
LOWbenchmarks/utils.py42 dummy_data.append((i, example))CODE
LOWbenchmarks/utils.py44 return dummy_dataCODE
LOWbenchmarks/utils.py48 dummy_data = generate_examples(features, num_examples=num_examples, seq_shapes=seq_shapes)CODE
LOWbenchmarks/utils.py51 for key, record in dummy_data:CODE
LOWbenchmarks/benchmark_array_xd.py25def write(my_features, dummy_data, tmp_dir):CODE
LOWbenchmarks/benchmark_array_xd.py27 for key, record in dummy_data:CODE
LOWsrc/datasets/data_files.py112 "dummy_data.zip",CODE
AI Structural Patterns39 hits · 30 pts
SeverityFileLineSnippetContext
LOWtests/test_arrow_dataset.py1170CODE
LOWtests/test_dataset_dict.py341CODE
LOWsrc/datasets/arrow_dataset.py6660CODE
LOWsrc/datasets/arrow_dataset.py6825CODE
LOWsrc/datasets/arrow_dataset.py345CODE
LOWsrc/datasets/arrow_dataset.py1491CODE
LOWsrc/datasets/arrow_dataset.py3214CODE
LOWsrc/datasets/arrow_dataset.py3669CODE
LOWsrc/datasets/arrow_dataset.py4143CODE
LOWsrc/datasets/arrow_dataset.py4971CODE
LOWsrc/datasets/arrow_dataset.py6072CODE
LOWsrc/datasets/arrow_dataset.py6321CODE
LOWsrc/datasets/arrow_dataset.py6401CODE
LOWsrc/datasets/iterable_dataset.py1345CODE
LOWsrc/datasets/iterable_dataset.py3464CODE
LOWsrc/datasets/iterable_dataset.py3559CODE
LOWsrc/datasets/iterable_dataset.py5000CODE
LOWsrc/datasets/dataset_dict.py2521CODE
LOWsrc/datasets/dataset_dict.py2696CODE
LOWsrc/datasets/dataset_dict.py824CODE
LOWsrc/datasets/dataset_dict.py996CODE
LOWsrc/datasets/dataset_dict.py1633CODE
LOWsrc/datasets/dataset_dict.py1923CODE
LOWsrc/datasets/dataset_dict.py2331CODE
LOWsrc/datasets/arrow_writer.py490CODE
LOWsrc/datasets/builder.py308CODE
LOWsrc/datasets/builder.py702CODE
LOWsrc/datasets/search.py454CODE
LOWsrc/datasets/load.py1220CODE
LOWsrc/datasets/load.py1381CODE
LOWsrc/datasets/load.py1404CODE
LOWsrc/datasets/load.py1428CODE
LOWsrc/datasets/load.py1452CODE
LOWsrc/datasets/load.py1475CODE
LOWsrc/datasets/io/generator.py9CODE
LOWsrc/datasets/io/spark.py18CODE
LOWsrc/datasets/packaged_modules/cache/cache.py100CODE
LOWsrc/datasets/utils/py_utils.py416CODE
LOWsrc/datasets/utils/file_utils.py333CODE
Excessive Try-Catch Wrapping29 hits · 28 pts
SeverityFileLineSnippetContext
LOWsrc/datasets/arrow_dataset.py5213 except Exception as error:CODE
LOWsrc/datasets/fingerprint.py87 except Exception as e:CODE
LOWsrc/datasets/arrow_writer.py567 except Exception: # pyarrow.lib.ArrowInvalid, OSErrorCODE
LOWsrc/datasets/builder.py1567 except Exception as e:CODE
LOWsrc/datasets/builder.py1657 except Exception:CODE
LOWsrc/datasets/builder.py1874 except Exception as e:CODE
LOWsrc/datasets/inspect.py290 except Exception as err:CODE
LOWsrc/datasets/load.py206 except Exception:CODE
LOWsrc/datasets/load.py1200 except Exception as e1:CODE
LOWsrc/datasets/load.py1204 except Exception:CODE
LOWsrc/datasets/features/features.py1250 except Exception:CODE
LOWsrc/datasets/features/features.py1279 except Exception:CODE
LOWsrc/datasets/packaged_modules/tsfile/tsfile.py340 except Exception as e:CODE
LOWsrc/datasets/packaged_modules/tsfile/tsfile.py406 except Exception as e:CODE
LOWsrc/datasets/packaged_modules/tsfile/tsfile.py420 except Exception:CODE
LOWsrc/datasets/packaged_modules/tsfile/tsfile.py494 except Exception as e:CODE
LOWsrc/datasets/packaged_modules/tsfile/tsfile.py516 except Exception as e:CODE
LOWsrc/datasets/utils/_dataset_viewer.py57 except Exception as e: # noqa catch any exception of the dataset viewer API and consider the parquet export doesn'tCODE
LOWsrc/datasets/utils/_dataset_viewer.py93 except Exception as e: # noqa catch any exception of the dataset viewer API and consider the dataset info doesn't eCODE
LOWsrc/datasets/utils/_dill.py78 except Exception: # TypeError, decimal.InvalidOperation, etc.CODE
LOWsrc/datasets/utils/_dill.py141 except Exception: # TypeError, decimal.InvalidOperation, etc.CODE
LOWsrc/datasets/utils/_dill.py276 except Exception:CODE
LOWsrc/datasets/utils/_dill.py288 except Exception:CODE
LOWsrc/datasets/utils/json.py41 except Exception:CODE
LOWsrc/datasets/utils/json.py61 except Exception:CODE
LOWsrc/datasets/utils/extract.py186 except Exception: # catch all errors in case future python versions change the zipfile internalsCODE
LOWsrc/datasets/download/download_manager.py200 except Exception:CODE
LOWsrc/datasets/formatting/formatting.py530 except Exception as exc:CODE
LOWsrc/datasets/formatting/formatting.py549 except Exception as exc:CODE
AI Slop Vocabulary17 hits · 23 pts
SeverityFileLineSnippetContext
LOWtests/test_iterable_dataset.py484 (3, lambda x: {"id+1": x["id"] + 1}, False, None), # just add 1 to the idCODE
LOWtests/test_iterable_dataset.py521 (3, lambda x: {"id+1": x["id"] + 1}, False, None), # just add 1 to the idCODE
LOWtests/test_iterable_dataset.py622 (3, lambda x: {"id+1": x["id"] + 1}, False, None, ["extra_column"]), # just add 1 to the idCODE
LOWtests/test_iterable_dataset.py845 (3, lambda id_: {"id+1": id_ + 1}, False, None, ["id"]), # just add 1 to the idCODE
LOWtests/test_iterable_dataset.py882 (3, lambda t: t.append_column("id+1", pc.add(t["id"], 1)), False, None), # just add 1 to the idCODE
LOWtests/test_iterable_dataset.py924 (3, lambda t: t.append_column("id+1", pc.add(t["id"], 1)), False, None), # just add 1 to the idCODE
LOWtests/test_iterable_dataset.py964 (3, lambda t: t.append_column("id+1", pc.add(t["id"], 1)), False, None), # just add 1 to the idCODE
LOWtests/test_iterable_dataset.py1078 ), # just add 1 to the idCODE
LOWtests/test_iterable_dataset.py1174 (3, lambda id_: pa.table({"id+1": pc.add(id_, 1)}), False, None, ["id"]), # just add 1 to the idCODE
MEDIUMsrc/datasets/arrow_dataset.py601 """To be used in dataset transforms that modify the features of the dataset, in order to update the features stored STRING
LOWsrc/datasets/features/audio.py144 # If we already had PCM-byte, we don`t have to make "read file, make bytes" (just use it!)COMMENT
MEDIUM…d_modules/folder_based_builder/folder_based_builder.py315 # Use block_size equal to the chunk size divided by 32 to leverage multithreadingCOMMENT
MEDIUMsrc/datasets/packaged_modules/json/json.py227 # Use block_size equal to the chunk size divided by 32 to leverage multithreadingCOMMENT
MEDIUMsrc/datasets/utils/track.py40 """Utility class to create an iterable from a generator function, in order to reset the generator when needed."""STRING
MEDIUMsrc/datasets/utils/file_utils.py771 # use xopen instead of fs.open to make data fetching more robustCOMMENT
MEDIUMsrc/datasets/utils/_dill.py316 # to be robust in case a script is moved for example.COMMENT
MEDIUMsrc/datasets/utils/_dill.py411 # to be robust in case a script is moved for example.COMMENT
Redundant / Tautological Comments13 hits · 20 pts
SeverityFileLineSnippetContext
LOWtests/test_fingerprint.py436 # Set TMPDIR to a non-existent directoryCOMMENT
LOWtests/test_fingerprint.py484 # Set TMPDIR to an existing directoryCOMMENT
LOWtests/test_fingerprint.py527 # Set TMPDIR to a path that will fail to create (e.g., invalid permissions)COMMENT
LOWtests/test_buckets.py30 # Write files with full paths relative to the bucket path (forward slashes for MemoryFileSystem)COMMENT
LOWsrc/datasets/arrow_dataset.py3464 # Check if we've already cached this computation (indexed by a hash)COMMENT
LOWsrc/datasets/arrow_dataset.py4587 # Check if we need to convert indicesCOMMENT
LOWsrc/datasets/arrow_dataset.py4801 # Check if we've already cached this computation (indexed by a hash)COMMENT
LOWsrc/datasets/arrow_dataset.py4943 # Check if we've already cached this computation (indexed by a hash)COMMENT
LOWsrc/datasets/arrow_dataset.py5166 # Check if we've already cached this computation (indexed by a hash)COMMENT
LOWsrc/datasets/fingerprint.py52 # Check if TMPDIR is set and handle the case where it doesn't existCOMMENT
LOWsrc/datasets/builder.py841 # Check if the data already existsCOMMENT
LOWsrc/datasets/utils/file_utils.py528 # Check if the file object is seekable even before reading the magic number (to avoid https://bugs.python.org/issue2COMMENT
LOWsrc/datasets/formatting/formatting.py618 # Check if key is validCOMMENT
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/datasets/arrow_dataset.py3368 # If the array is empty we do nothing (but we make sure to handle an empty indices mapping and remove the requesCOMMENT
LOWsrc/datasets/arrow_dataset.py4357 # don't forget to copy the objectsCOMMENT
LOWsrc/datasets/arrow_dataset.py4357 # don't forget to copy the objectsCOMMENT
LOWsrc/datasets/arrow_dataset.py6745 # We make sure to get info from this commitCOMMENT
LOWsrc/datasets/dataset_dict.py2617 # We make sure to get info from this commitCOMMENT
Modern Structural Boilerplate6 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/datasets/arrow_writer.py85 def set_batch_size(feature: FeatureType) -> None:CODE
LOWsrc/datasets/arrow_writer.py125 def set_batch_size(feature: FeatureType) -> None:CODE
LOWsrc/datasets/features/__init__.py1__all__ = [CODE
LOWsrc/datasets/utils/logging.py110def set_verbosity(verbosity: int) -> None:CODE
LOWsrc/datasets/utils/json.py132def set_json_types_in_feature(feature: "FeatureType", json_field_paths: list[list[str]]) -> None:CODE
LOWsrc/datasets/download/__init__.py1__all__ = [CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/features/test_array_xd.py461 def process_data(batch):CODE
LOWsrc/datasets/utils/experimental.py26 ... def my_function():STRING