Hotspots

Files that are both large and changed often are where bugs tend to cluster and where refactoring pays off first. Each file of code in the current tree, tests included, is placed by its size and by the number of commits that changed it, under this name or one it had before; its hotspot score is changes × √lines. Documentation, vendored and generated files, and files without counted lines, such as binary files, are left out.

Files Analyzed
8,307
of 10,611 in the current tree
Top 10 Files
19.3%
of the total hotspot score
Median File Size
126 lines
half of the files are at least this large
Median Changes
4 commits
half of the files changed at least this often

Change frequency by file size

Each dot is a file; a bigger dot is a higher score. The dashed lines mark the median file size and the median number of changes: the large files that change often, in the top right, are in color. The 5 highest scores are numbered as in the list. Both axes are logarithmic. Showing the 2,000 highest-scoring of 8,307 files.

Chart not shown: it is drawn with JavaScript, which is turned off or blocked on this page, as it is on Jenkins by default. How to show the charts

Highest scores

  1. 1codex-rs/core/src/session/mod.rs6,588 lines · 1,556 changes
  2. 2codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json29,449 lines · 699 changes
  3. 3codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json27,070 lines · 594 changes
  4. 4codex-rs/core/src/session/tests.rs13,549 lines · 816 changes
  5. 5codex-rs/core/config.schema.json9,477 lines · 710 changes
  6. 6codex-rs/core/src/config/mod.rs5,537 lines · 841 changes
  7. 7codex-rs/protocol/src/protocol.rs6,980 lines · 675 changes
  8. 8codex-rs/core/src/config/config_tests.rs14,574 lines · 448 changes

Top hotspots

The files ranked by hotspot score: the larger a file is and the more often it changes, the higher it ranks. Authors is how many people have changed the file, bots aside, as on the Code Ownership page: a hotspot only one person has changed is also a bus-factor risk.

Table: the 100 highest-scoring of 8,307 files