repowiserepowise
Sign in
activeloopai/deeplake
OverviewDocsArchitectureKnowledge GraphFilesCode HealthSecurityRefactoring

People & History

CommitsContributorsDecisions
Chat
Stats
repowiserepowise
ExplorePricingDocs
Sign in
repowiseactiveloopai/deeplake
DE
DE

activeloopai / deeplake

cppmainf432041192.9K linessynced 1mo ago

Code health

8.0out of 10Good

This codebase scores 8.0 out of 10 for code health, which we rate good. It also scores maintainability 8.6 and static performance 9.9 out of 10. The three are scored separately and never blended into one number.

Full health report →
Documentation1,536pages0 with model-written prose, 1,536 built from the indexDead code802exportsUnused exports that nothing in the graph reaches

Do next

4 things worth doing this quarter.

Worth planning

  • Break up duckdb_value_to_pg_datum (CCN 49, 418 lines)

    cpp/deeplake_pg/duckdb_pg_convert.cpp:363

    duckdb_value_to_pg_datum nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 1 file imports it.

    gain
    up to +1.6 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 49, 418 lines, nests 6 deep
    severity
    high
    Medium effort, worth a check
  • Break up datum_to_nd (CCN 51, 210 lines)

    cpp/deeplake_pg/nd_utils.hpp:574

    datum_to_nd nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 8 files import it.

    gain
    up to +0.7 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 51, 210 lines, nests 5 deep
    severity
    high
    Medium effort, worth a check
  • Delete 800 unused symbols and files (14,552 lines)

    Nothing in the graph reaches them, across 102 files; every reader and agent pays to skip them.

    symbols
    800
    lines
    14,552
    safe to delete
    Yes(inferred)
    Medium effort
  • Break up nifti_read_subregion_image (CCN 26, 131 lines)

    cpp/3rd_party/rnifti/niftilib/nifti1_io.cpp:7029

    nifti_read_subregion_image nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 3 files import it.

    gain
    up to +0.2 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 26, 131 lines, nests 8 deep
    severity
    critical
    Medium effort, worth a check

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report
    Small effort
Lines of code
192.9K
Files
856
Symbols
13,494
Modules
5
Languages
7

Recent activity

All commits →

Commits

  • f432041fupdate gh actions4mo ago
  • 9f1edc96remove claude review4mo ago
  • 432d63dcSkip stateless tests pending rework after client-side DDL replay removal7mo ago
  • 1b2f4ccbAvoid wal replay on client connection.7mo ago
  • c6cf643dFix SPI stack leak, error logging, and search_path during DDL WAL replay7mo ago
  • 92604dc9Remove serverless references from Dockerfile on main7mo ago

Decisions

  • Avoid logs directoryproposed · 1mo ago
  • Enable and then remove TMATEproposed · 1mo ago
  • Fix environment variablesproposed · 1mo ago
  • Avoid running as rootproposed · 1mo ago
  • Debug initdb stepproposed · 1mo ago
  • Add numpy dependencyproposed · 1mo ago
▸

Everything we found

2,519 open

Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.

  • worst item is critical severity. Code health828Untested hotspot · cpp/deeplake_pg/nd_utils.hpp23 findings · 9.2 deducted→
  • worst item is medium severity. Refactoring191sliced_array+1.5 health, S effort · cpp/nd/impl/sliced_array.hpp→
  • worst item is medium severity. Decisions24Avoid logs directory24 awaiting review→
  • worst item is medium severity. Ownership660cpp/3rd_party/boost_json_impl.cpp100% single-owner concentration, not touched in 90 days→
  • worst item is low severity. Dead code816python/deeplake/formats.pyiUnreachable symbol (40 lines)→

Composition

Open the graph →
cpp 69%python 18%
c 10%shell 2%makefile 1%Other 1%

Explore this codebase

  • Docs1,536 pages across 5 modules→
  • ChatAsk this codebase a question and get an answer with its sources.→
  • Files856 files with per-file docs, health and history→
  • ArchitectureDependency graph, layers, and 4 entry points→
  • Code healthPer-file scores, 1,147 open findings, coverage and refactoring targets→
  • Knowledge graphEntities, communities, and the paths between them→
  • Change couplingFiles that keep changing together, mined from commit history→
  • CommitsChange-risk ranked history with agent provenance→
  • ContributorsBus factor, per-file maintainers, and the human/agent split→
  • StatsSize class, origin, lifetime churn, rhythm and records→
  • CostsWhat indexing this snapshot cost, by model and by run.→