repowisevectifyai/pageindex

vectifyai / pageindex

pythonmaind2693d833.7K linessynced on Sep 30, 2026

Code health

5.1out of 10Needs work

Hotspots average 3.7, the place fixes pay off most.

Explore this codebase

Do next · 4

4 things worth doing in the week to Sep 29, the last indexed commit, 3 of them now.

Now

  • High

    Start breaking up _tokenize_show_operators (CCN 112, 248 lines): first lift lines 349-363

    pageindex/flash/parser_pdfium_charlevel/content_stream.py:349

    _tokenize_show_operators nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 3 files, changed 1 time in 90 days.

    gain
    +0.9 health on this file(inferred)
    health recoverable
    +0.9(inferred)
    size
    CCN 112, 248 lines, nests 6 deep
    steps
    2 (2 mechanical)
  • High

    Start breaking up _parse_tounicode_cmap (CCN 89, 194 lines): first lift lines 193-201

    pageindex/flash/parser_pdfium_charlevel/cmap_parse.py:193

    _parse_tounicode_cmap nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 4 files, changed 1 time in 90 days.

    gain
    +0.8 health on this file(inferred)
    health recoverable
    +0.8(inferred)
    size
    CCN 89, 194 lines, nests 7 deep
    steps
    1 (1 mechanical)
  • High

    Start breaking up detect_font_heading (CCN 158, 153 lines): first lift lines 192-198

    pageindex/flash/heading_detection/style_detectors.py:192

    detect_font_heading has many paths; easier to read and change once split; its file is imported by 2 files, changed 1 time in 90 days.

    gain
    +0.9 health on this file(inferred)
    health recoverable
    +0.9(inferred)
    size
    CCN 158, 153 lines
    steps
    2 (2 mechanical)

Worth planning

  • Tidy the code shape this week's commits left: 5 findings in 4 files

    1 commit in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with pageindex/flash/api.py (2 findings): tidying it while the change is fresh costs less than after the next one.

    code-shape findings
    5
    files
    4
    commits
    1

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

Everything we found

4 areas