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
1,515
of 2,466 in the current tree
Top 10 Files
30.3%
of the total hotspot score
Median File Size
88 lines
half of the files are at least this large
Median Changes
11 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.

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. 1numpy/_core/tests/test_multiarray.py12,456 lines · 1,047 changes
  2. 2numpy/__init__.pyi16,301 lines · 758 changes
  3. 3numpy/_core/src/multiarray/multiarraymodule.c5,852 lines · 1,130 changes
  4. 4numpy/_core/src/umath/ufunc_object.c7,590 lines · 905 changes
  5. 5numpy/ma/core.py9,263 lines · 696 changes
  6. 6numpy/lib/_function_base_impl.py5,844 lines · 762 changes
  7. 7numpy/_core/_add_newdocs.py7,242 lines · 657 changes
  8. 8numpy/_core/src/multiarray/scalartypes.c.src5,097 lines · 605 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 1,515 files