Repository Analysis

treeverse/dvc

🦉 Data Versioning and ML Experiments

25.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of treeverse/dvc, a Python project with 15,747 GitHub stars. SynthScan v2.0 examined 90,352 lines of code across 575 source files, recording 1507 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 25.0 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).

25.0
Adjusted Score
25.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
15.7K
Stars
Python
Language
90.4K
Lines of Code
575
Files
1.5K
Pattern Hits
2026-07-14
Scan Date
0.28
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 1HIGH 161MEDIUM 4LOW 1341

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 1507 distinct pattern matches across 13 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 Identifiers863 hits · 875 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_ignore.py167def test_match_ignore_from_file(CODE
LOWtests/unit/test_ignore.py303def test_ignore_unignore_from_git_example(tmp_dir, dvc, scm):STRING
LOWtests/unit/test_pathspec_math.py71def test_dvcignore_pattern_change_dir(tmp_dir, patterns, dirname, changed):CODE
LOWtests/unit/test_dirs.py9def test_global_config_dir_respects_env_var(monkeypatch):CODE
LOWtests/unit/test_dirs.py16def test_site_cache_dir_on_unix(monkeypatch):CODE
LOWtests/unit/test_dirs.py21def test_site_cache_dir_env_var(monkeypatch):CODE
LOWtests/unit/test_dirs.py26def test_site_cache_dir_with_config_parameter(monkeypatch):CODE
LOWtests/unit/test_dirs.py31def test_site_cache_dir_env_var_precedence(monkeypatch):CODE
LOWtests/unit/test_prompt.py4def test_confirm_in_tty_if_stdin_is_closed(mocker):CODE
LOWtests/unit/test_tabular_data.py99def test_dict_like_interfaces():CODE
LOWtests/unit/test_tabular_data.py296def test_drop_duplicates_rich_text():CODE
LOWtests/unit/test_tabular_data.py349def test_drop_duplicates_subset(axis, subset, expected):CODE
LOWtests/unit/test_tabular_data.py374def test_drop_duplicates_invalid_axis():CODE
LOWtests/unit/test_updater.py71def test_check_update_respect_config(result, updater, mocker):CODE
LOWtests/unit/test_updater.py107def test_check_refetches_each_day(mock_tty, updater, caplog, mocker):CODE
LOWtests/unit/test_updater.py124def test_check_fetches_on_invalid_data_format(mock_tty, updater, caplog, mocker):CODE
LOWtests/unit/test_lockfile.py8def test_stage_dump_no_outs_deps(tmp_dir, dvc):CODE
LOWtests/unit/test_lockfile.py18def test_stage_dump_when_already_exists(tmp_dir, dvc):CODE
LOWtests/unit/test_lockfile.py30def test_stage_dump_with_deps_and_outs(tmp_dir, dvc):CODE
LOWtests/unit/test_lockfile.py48def test_stage_overwrites_if_already_exists(tmp_dir, dvc):CODE
LOWtests/unit/test_lockfile.py60def test_load_when_lockfile_does_not_exist(tmp_dir, dvc):CODE
LOWtests/unit/test_lockfile.py78def test_load_when_lockfile_is_corrupted(tmp_dir, dvc, corrupt_data):CODE
LOWtests/unit/test_lockfile.py88def test_try_loading_lockfile_that_is_gitignored(CODE
LOWtests/unit/test_analytics.py24def test_collect_and_send_report(mocker, tmp_global_dir):CODE
LOWtests/unit/test_analytics.py194def test_git_remote_hash_local(mocker, git_remote):CODE
LOWtests/unit/test_progress.py16def test_quiet_logging_disable_false(caplog, capsys, mocker):CODE
LOWtests/unit/test_scm.py7def test_resolve_rev_empty_git_repo(scm):CODE
LOWtests/unit/test_dvcfile.py34def test_pipelines_single_stage_file(path):CODE
LOWtests/unit/test_dvcfile.py41def test_stage_load_on_not_existing_file(tmp_dir, dvc, file, is_dvcignored):CODE
LOWtests/unit/test_dvcfile.py54def test_stage_load_on_non_file(tmp_dir, dvc, file):CODE
LOWtests/unit/test_dvcfile.py62def test_stage_load_on_invalid_data(tmp_dir, dvc, file):CODE
LOWtests/unit/test_dvcfile.py93def test_dump_multiple_pipeline_stages(tmp_dir, dvc):CODE
LOWtests/unit/test_dvcfile.py115def test_dump_stages_single_stage(tmp_dir, dvc):CODE
LOWtests/unit/test_dvcfile.py127def test_stage_load_file_exists_but_dvcignored(tmp_dir, dvc, scm, file):CODE
LOWtests/unit/test_dvcfile.py140def test_try_loading_dvcfile_that_is_gitignored(tmp_dir, dvc, scm, file):CODE
LOWtests/unit/test_dvcfile.py155def test_dvcfile_encoding_error(tmp_dir, dvc):CODE
LOWtests/unit/test_rwlock.py59def test_rwlock_edit_is_guarded(tmp_path, mocker):CODE
LOWtests/unit/test_config.py119def test_feature_section_supports_arbitrary_values(caplog):CODE
LOWtests/unit/test_context.py40def test_context_dict_ignores_keys_except_str():CODE
LOWtests/unit/test_context.py66def test_context_setitem_getitem():CODE
LOWtests/unit/test_context.py213def test_overwrite_with_setitem():CODE
LOWtests/unit/test_context.py322def test_track_from_multiple_files(tmp_dir):CODE
LOWtests/unit/test_context.py400def test_resolve_resolves_dict_keys():CODE
LOWtests/unit/test_context.py409def test_resolve_resolves_boolean_value():CODE
LOWtests/unit/test_context.py420def test_load_from_raises_if_file_not_exist(tmp_dir, dvc):CODE
LOWtests/unit/test_context.py427def test_load_from_raises_if_file_is_directory(tmp_dir, dvc):CODE
LOWtests/unit/test_api.py8def test_open_raises_error_if_no_context(tmp_dir, dvc):CODE
LOWtests/unit/test_api.py18def test_open_rev_raises_error_on_wrong_mode(tmp_dir, dvc):CODE
LOWtests/unit/test_compare.py26def test_diff_table_with_value_column():CODE
LOWtests/unit/test_compare.py69def test_diff_table_precision():CODE
LOWtests/unit/test_compare.py100def test_diff_unsupported_diff_message(extra, expected):CODE
LOWtests/unit/test_compare.py267def test_metrics_show_with_valid_falsey_values():CODE
LOWtests/unit/test_compare.py289def test_metrics_show_with_no_revision():CODE
LOWtests/unit/test_compare.py305def test_metrics_show_with_non_dict_values():CODE
LOWtests/unit/test_compare.py313def test_metrics_show_with_multiple_revision():CODE
LOWtests/unit/test_compare.py343def test_metrics_show_with_one_revision_multiple_paths():CODE
LOWtests/unit/test_compare.py373def test_metrics_show_with_different_metrics_header():CODE
LOWtests/unit/test_compare.py405def test_metrics_show_precision():CODE
LOWtests/unit/test_compare.py471def test_metrics_show_default(capsys):CODE
LOWtests/unit/test_compare.py494def test_metrics_show_markdown(capsys):CODE
803 more matches not shown…
Cross-Language Confusion153 hits · 848 pts
SeverityFileLineSnippetContext
HIGHtests/func/test_ignore.py470 dvc.push()CODE
HIGHtests/func/test_gc.py229 dvc.push()CODE
HIGHtests/func/test_gc.py354 dvc.push(["file1", "dir1"])CODE
HIGHtests/func/test_gc.py388 dvc.push(["file1", "dir1"], remote="other_remote")CODE
HIGHtests/func/test_gc.py413 dvc.push()CODE
HIGHtests/func/test_gc.py442 dvc.push()CODE
HIGHtests/func/test_run_cache.py19 assert dvc.push(run_cache=True) == 2CODE
HIGHtests/func/test_run_cache.py90 cmd="cp foo bar && cp foo goo",CODE
HIGHtests/func/test_run_cache.py216 dvc.push(run_cache=True)CODE
HIGHtests/func/test_run_cache.py247 dvc.push(run_cache=True)CODE
HIGHtests/func/test_data_status.py415 assert dvc.push() == 4CODE
HIGHtests/func/test_data_status.py439 dvc.push(remote="myremote")CODE
HIGHtests/func/test_data_status.py518 dvc.push()CODE
HIGHtests/func/test_data_status.py916 dvc.push()CODE
HIGHtests/func/test_data_status.py1235 assert dvc.push() == 3CODE
HIGHtests/func/test_data_status.py1264 dvc.push()CODE
HIGHtests/func/test_external_repo.py53 erepo_dir.dvc.push()CODE
HIGHtests/func/test_external_repo.py112 erepo_dir.dvc.push()CODE
HIGHtests/func/test_status.py127 cmd="echo alice>alice && echo bob>bob",CODE
HIGHtests/func/test_virtual_directory.py20 assert dvc.push() == 3CODE
HIGHtests/func/test_virtual_directory.py33 assert dvc.push() == 2CODE
HIGHtests/func/test_virtual_directory.py41 assert dvc.push() == 2CODE
HIGHtests/func/test_virtual_directory.py63 assert dvc.push() == 5CODE
HIGHtests/func/test_virtual_directory.py75 assert dvc.push() == 1CODE
HIGHtests/func/test_virtual_directory.py85 assert dvc.push() == 1CODE
HIGHtests/func/test_virtual_directory.py98 assert dvc.push() == 3CODE
HIGHtests/func/test_virtual_directory.py110 assert dvc.push() == 3CODE
HIGHtests/func/test_virtual_directory.py123 assert dvc.push() == 3CODE
HIGHtests/func/test_virtual_directory.py134 assert dvc.push() == 2CODE
HIGHtests/func/test_virtual_directory.py147 assert dvc.push() == 3CODE
HIGHtests/func/test_virtual_directory.py158 assert not dvc.push()CODE
HIGHtests/func/test_virtual_directory.py166 assert not dvc.push()CODE
HIGHtests/func/test_virtual_directory.py180 assert dvc.push() == 22CODE
HIGHtests/func/test_virtual_directory.py198 assert dvc.push() == 2CODE
HIGHtests/func/test_import.py355 erepo_dir.dvc.push([os.path.join(os.fspath(erepo_dir), "dire*")], glob=True)CODE
HIGHtests/func/test_import.py438 erepo_dir.dvc.push()CODE
HIGHtests/func/test_import.py455 dvc.push()CODE
HIGHtests/func/test_import.py602 erepo_dir.dvc.push()CODE
HIGHtests/func/test_get.py233 erepo_dir.dvc.push()CODE
HIGHtests/func/test_get.py260 dvc.push()CODE
HIGHtests/func/test_remote.py211 dvc.push()CODE
HIGHtests/func/test_remote.py220 dvc.push()CODE
HIGHtests/func/test_remote.py255 dvc.push()CODE
HIGHtests/func/test_remote.py285 dvc.push()CODE
HIGHtests/func/test_remote.py419 dvc.push()CODE
HIGHtests/func/test_remote.py438 dvc.push()CODE
HIGHtests/func/test_install.py92 scm.gitpython.repo.git.push("origin", "master")CODE
HIGHtests/func/test_data_cloud.py134 dvc.push()CODE
HIGHtests/func/test_data_cloud.py437 assert dvc.push(["dvc.yaml:copy-ipsum-baz"]) == 1CODE
HIGHtests/func/test_data_cloud.py441 assert dvc.push(["dvc.yaml"]) == 2CODE
HIGHtests/func/test_data_cloud.py445 dvc.push(["dvc.yaml:StageThatDoesNotExist"])CODE
HIGHtests/func/test_data_cloud.py531 assert dvc.push(**{key: True}) == expectedCODE
HIGHtests/func/test_data_cloud.py544 assert dvc.push("copy-foo-bar") == 1CODE
HIGHtests/func/test_data_cloud.py548 assert dvc.push() == 0CODE
HIGHtests/func/test_data_cloud.py177 dvc.push()CODE
HIGHtests/func/test_data_cloud.py198 dvc.push()CODE
HIGHtests/func/test_data_cloud.py332 dvc.push("bar")CODE
HIGHtests/func/test_data_cloud.py363 dvc.push()CODE
HIGHtests/func/test_data_cloud.py414 assert dvc.push() == 3CODE
HIGHtests/func/test_data_cloud.py477 dvc.push()CODE
93 more matches not shown…
Unused Imports309 hits · 305 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py10CODE
LOWtests/conftest.py12CODE
LOWtests/conftest.py13CODE
LOWtests/conftest.py14CODE
LOWtests/integration/conftest.py1CODE
LOWtests/integration/conftest.py1CODE
LOWtests/utils/asserts.py5CODE
LOWtests/remotes/__init__.py1CODE
LOWtests/remotes/__init__.py1CODE
LOWtests/remotes/__init__.py1CODE
LOWtests/remotes/__init__.py3CODE
LOWtests/remotes/__init__.py3CODE
LOWtests/func/test_dataset.py26CODE
LOWtests/func/test_data_cloud.py15CODE
LOWtests/func/experiments/conftest.py3CODE
LOWtests/func/experiments/conftest.py3CODE
LOWtests/func/experiments/conftest.py3CODE
LOWtests/func/experiments/conftest.py3CODE
LOWtests/func/experiments/conftest.py3CODE
LOWtests/func/experiments/conftest.py3CODE
LOWtests/func/api/test_data.py9CODE
LOWtests/func/api/test_experiments.py7CODE
LOWdvc/config.py19CODE
LOWdvc/config.py20CODE
LOWdvc/data_cloud.py13CODE
LOWdvc/data_cloud.py14CODE
LOWdvc/data_cloud.py15CODE
LOWdvc/config_schema.py23CODE
LOWdvc/database.py19CODE
LOWdvc/database.py19CODE
LOWdvc/database.py19CODE
LOWdvc/database.py20CODE
LOWdvc/__init__.py8CODE
LOWdvc/__init__.py9CODE
LOWdvc/__init__.py9CODE
LOWdvc/types.py4CODE
LOWdvc/updater.py12CODE
LOWdvc/ignore.py25CODE
LOWdvc/ignore.py27CODE
LOWdvc/dvcfile.py19CODE
LOWdvc/dvcfile.py20CODE
LOWdvc/dvcfile.py23CODE
LOWdvc/cachemgr.py9CODE
LOWdvc/exceptions.py9CODE
LOWdvc/analytics.py10CODE
LOWdvc/scm.py10CODE
LOWdvc/scm.py19CODE
LOWdvc/scm.py21CODE
LOWdvc/_debug.py6CODE
LOWdvc/_debug.py7CODE
LOWdvc/output.py47CODE
LOWdvc/output.py49CODE
LOWdvc/ui/__init__.py10CODE
LOWdvc/ui/__init__.py11CODE
LOWdvc/ui/__init__.py11CODE
LOWdvc/ui/__init__.py12CODE
LOWdvc/ui/__init__.py13CODE
LOWdvc/ui/__init__.py14CODE
LOWdvc/ui/__init__.py17CODE
LOWdvc/ui/__init__.py18CODE
249 more matches not shown…
Deep Nesting72 hits · 72 pts
SeverityFileLineSnippetContext
LOWtests/unit/command/test_help.py13CODE
LOWtests/unit/command/test_help.py17CODE
LOWtests/unit/repo/experiments/queue/test_celery.py176CODE
LOWtests/unit/repo/experiments/queue/test_celery.py190CODE
LOWdvc/rwlock.py76CODE
LOWdvc/logger.py143CODE
LOWdvc/dagascii.py83CODE
LOWdvc/lock.py110CODE
LOWdvc/dvcfile.py427CODE
LOWdvc/cachemgr.py41CODE
LOWdvc/_debug.py34CODE
LOWdvc/compare.py182CODE
LOWdvc/compare.py226CODE
LOWdvc/output.py425CODE
LOWdvc/output.py912CODE
LOWdvc/render/match.py68CODE
LOWdvc/render/converter/vega.py22CODE
LOWdvc/render/converter/vega.py33CODE
LOWdvc/render/converter/vega.py85CODE
LOWdvc/render/converter/vega.py122CODE
LOWdvc/dependency/param.py124CODE
LOWdvc/utils/collections.py6CODE
LOWdvc/utils/table.py14CODE
LOWdvc/utils/table.py48CODE
LOWdvc/utils/serialize/_py.py88CODE
LOWdvc/utils/serialize/_py.py114CODE
LOWdvc/cli/__init__.py151CODE
LOWdvc/testing/benchmarks/fixtures.py95CODE
LOWdvc/testing/benchmarks/cli/stories/test_modify_data.py38CODE
LOWdvc/api/experiments.py46CODE
LOWdvc/api/data.py258CODE
LOWdvc/stage/__init__.py313CODE
LOWdvc/stage/__init__.py420CODE
LOWdvc/commands/add.py10CODE
LOWdvc/commands/gc.py13CODE
LOWdvc/commands/remote.py82CODE
LOWdvc/commands/plots.py75CODE
LOWdvc/commands/plots.py184CODE
LOWdvc/commands/diff.py118CODE
LOWdvc/commands/experiments/ls.py12CODE
LOWdvc/commands/experiments/diff.py13CODE
LOWdvc/parsing/interpolate.py96CODE
LOWdvc/fs/dvc.py378CODE
LOWdvc/fs/dvc.py447CODE
LOWdvc/repo/gc.py55CODE
LOWdvc/repo/index.py47CODE
LOWdvc/repo/index.py946CODE
LOWdvc/repo/index.py467CODE
LOWdvc/repo/index.py653CODE
LOWdvc/repo/commit.py46CODE
LOWdvc/repo/__init__.py102CODE
LOWdvc/repo/open_repo.py155CODE
LOWdvc/repo/checkout.py42CODE
LOWdvc/repo/diff.py25CODE
LOWdvc/repo/worktree.py305CODE
LOWdvc/repo/data.py408CODE
LOWdvc/repo/experiments/collect.py126CODE
LOWdvc/repo/experiments/run.py15CODE
LOWdvc/repo/experiments/pull.py22CODE
LOWdvc/repo/experiments/__init__.py138CODE
12 more matches not shown…
Excessive Try-Catch Wrapping39 hits · 42 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_logger.py65 except Exception:CODE
LOWtests/unit/test_logger.py76 except Exception:CODE
LOWtests/unit/test_logger.py87 except Exception:CODE
LOWtests/unit/test_logger.py98 except Exception:CODE
LOWtests/unit/test_logger.py116 except Exception:CODE
LOWtests/unit/test_logger.py136 except Exception:CODE
LOWtests/unit/test_logger.py154 except Exception as exc: # noqa: BLE001CODE
LOWdvc/database.py84 except Exception as exc:CODE
LOWdvc/logger.py153 except Exception: # noqa: BLE001, S110CODE
LOWdvc/logger.py161 except Exception: # noqa: BLE001CODE
LOWdvc/updater.py80 except Exception as e: # noqa: BLE001CODE
LOWdvc/analytics.py150 except Exception:CODE
LOWdvc/analytics.py178 except Exception as exc: # noqa: BLE001CODE
LOWdvc/_debug.py124 except Exception:CODE
MEDIUMdvc/_debug.py121def debug():CODE
LOWdvc/render/match.py114 except Exception as e: # noqa: BLE001CODE
LOWdvc/utils/__init__.py393 except Exception as e: # noqa: BLE001CODE
LOWdvc/cli/__init__.py236 except Exception as exc: # noqa: BLE001CODE
LOWdvc/repo/fetch.py88 except Exception as exc: # noqa: BLE001CODE
LOWdvc/repo/reproduce.py188 except Exception as exc: # noqa: BLE001STRING
LOWdvc/repo/scm_context.py104 except Exception:CODE
LOWdvc/repo/artifacts.py268 except Exception as exc:CODE
LOWdvc/repo/artifacts.py336 except Exception as exc: # noqa: BLE001CODE
LOWdvc/repo/artifacts.py364 except Exception as exc: # noqa: BLE001CODE
LOWdvc/repo/artifacts.py378 except Exception as exc:CODE
LOWdvc/repo/metrics/show.py69 except Exception as exc: # noqa: BLE001CODE
LOWdvc/repo/metrics/show.py126 except Exception as e:CODE
LOWdvc/repo/metrics/show.py227 except Exception as exc:CODE
LOWdvc/repo/experiments/collect.py61 except Exception as exc:CODE
LOWdvc/repo/experiments/stash.py144 except Exception:CODE
LOWdvc/repo/experiments/push.py127 except Exception as exc: # noqa: BLE001CODE
LOWdvc/repo/experiments/queue/tempdir.py128 except Exception as exc:CODE
LOWdvc/repo/experiments/queue/tasks.py75 except Exception:CODE
LOWdvc/repo/experiments/queue/workspace.py134 except Exception as exc:CODE
LOWdvc/repo/experiments/queue/base.py427 except Exception: # noqa: BLE001CODE
LOWdvc/repo/experiments/executor/local.py191 except Exception:CODE
LOWdvc/repo/experiments/executor/base.py645 except Exception:CODE
LOWdvc/repo/params/show.py111 except Exception as exc: # noqa: BLE001CODE
LOWdvc/repo/params/show.py194 except Exception as exc:CODE
Docstring Block Structure7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHdvc/api/show.py41Get metrics tracked in `repo`. Without arguments, this function will retrieve all metrics from all tracked metrSTRING
HIGHdvc/api/show.py164Get parameters tracked in `repo`. Without arguments, this function will retrieve all params from all tracked paSTRING
HIGHdvc/api/experiments.py14 Create a new DVC experiment using `exp save`. See https://dvc.org/doc/command-reference/exp/save. Args: STRING
HIGHdvc/api/artifacts.py13 Return path and Git revision for an artifact in a DVC project. The resulting path and revision can be used in STRING
HIGHdvc/api/data.py112 Opens a file tracked in a DVC project. This function may only be used as a context manager (using the `with` STRING
HIGHdvc/repo/ls.py57Methods for getting files and outputs for the repo. Args: url (str): the repo url path (str, optionSTRING
HIGHdvc/repo/init.py16 Creates an empty repo on the given directory -- basically a `.dvc` directory with subdirectories for configuratSTRING
AI Structural Patterns32 hits · 31 pts
SeverityFileLineSnippetContext
LOWdvc/progress.py44CODE
LOWdvc/compare.py298CODE
LOWdvc/compare.py344CODE
LOWdvc/output.py310CODE
LOWdvc/ui/__init__.py96CODE
LOWdvc/ui/__init__.py137CODE
LOWdvc/ui/__init__.py292CODE
LOWdvc/testing/path_info.py290CODE
LOWdvc/stage/__init__.py130CODE
LOWdvc/fs/dvc.py86CODE
LOWdvc/fs/callbacks.py39CODE
LOWdvc/repo/fetch.py28CODE
LOWdvc/repo/fetch.py101CODE
LOWdvc/repo/brancher.py17CODE
LOWdvc/repo/pull.py10CODE
LOWdvc/repo/add.py192CODE
LOWdvc/repo/gc.py55CODE
LOWdvc/repo/reproduce.py210CODE
LOWdvc/repo/imp_url.py17CODE
LOWdvc/repo/__init__.py135CODE
LOWdvc/repo/__init__.py478CODE
LOWdvc/repo/ls.py46CODE
LOWdvc/repo/artifacts.py286CODE
LOWdvc/repo/data.py489CODE
LOWdvc/repo/status.py42CODE
LOWdvc/repo/status.py107CODE
LOWdvc/repo/push.py64CODE
LOWdvc/repo/metrics/show.py194CODE
LOWdvc/repo/experiments/show.py24CODE
LOWdvc/repo/experiments/collect.py268CODE
LOWdvc/repo/experiments/run.py15CODE
LOWdvc/repo/params/show.py161CODE
Modern Structural Boilerplate14 hits · 14 pts
SeverityFileLineSnippetContext
LOWtests/dir_helpers.py51__all__ = [CODE
LOWdvc/ignore.py305 def _update_trie(self, dirname: str, trie: Trie) -> None:CODE
LOWdvc/ignore.py347 def _update_sub_repo(self, path: str, ignore_trie: Trie) -> None:CODE
LOWdvc/scm.py128 def update_git(self, event: "GitProgressEvent") -> None:CODE
LOWdvc/progress.py16logger = logging.getLogger(__name__)CODE
LOWdvc/progress.py105 def update_msg(self, msg: str, n: int = 1) -> None:CODE
LOWdvc/progress.py112 def set_msg(self, msg: str) -> None:CODE
LOWdvc/output.py733 def set_exec(self) -> None:CODE
LOWdvc/utils/objects.py8__all__ = ["cached_property"]CODE
LOWdvc/testing/matchers.py98__all__ = [CODE
LOWdvc/testing/fixtures.py9__all__ = [CODE
LOWdvc/api/__init__.py10__all__ = [CODE
LOWdvc/commands/du.py8logger = logging.getLogger(__name__)CODE
LOWdvc/repo/data.py78 def set_size(self, size: int) -> None:CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALdvc/commands/experiments/queue_worker.py11 self.repo.experiments.celery_queue.worker.start(CODE
Fake / Example Data6 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/unit/utils/test_humanize.py43 text = "lorem ipsum"CODE
LOWtests/unit/utils/test_humanize.py61 text = "lorem ipsum"CODE
LOWtests/unit/repo/test_scm_context.py107 context.track_file("lorem ipsum")CODE
LOWtests/unit/repo/test_scm_context.py108 assert context.files_to_track == {"foo", "lorem ipsum"}CODE
LOWtests/unit/repo/test_scm_context.py116 assert set(match.groups()) == {"'lorem ipsum'", "foo"}CODE
LOWtests/func/test_virtual_directory.py102 tmp_dir.gen({"dir": {"subdir": {"ipsum": "lorem ipsum", "file": "file"}}})CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH.github/PULL_REQUEST_TEMPLATE.md3* [ ] 📖 If this PR requires [documentation](https://dvc.org/doc) updates, I have created a separate PR (or issue, at leaCOMMENT
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_ignore.py21 ("#to_ignore", ["\\#to_ignore"], True),COMMENT
LOWtests/unit/test_pathspec_math.py21 # Put a backslash ("\") in front of the first "!" for patterns thatCOMMENT
LOWtests/unit/test_pathspec_math.py41 # The range notation, e.g. [a-zA-Z], can be used to match one of theCOMMENT
LOWdvc/utils/__init__.py81 env[lp_key] = lp_origCOMMENT
LOWdvc/cli/utils.py41 # see: https://bugs.python.org/issue22848COMMENT
LOWdvc/stage/run.py81 kwargs = {"cwd": stage.wdir, "env": fix_env(None), "close_fds": True}COMMENT
LOWdvc/fs/__init__.py121 #COMMENT
Self-Referential Comments3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/fs/test_dvcfs.py719 # Create the test dirsCOMMENT
MEDIUMtests/unit/fs/test_dvcfs.py748 # Create the test dirCOMMENT
MEDIUMdvc/cli/__init__.py1"""This module provides an entrypoint to the dvc cli and parsing utils."""STRING