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,796
of 2,701 in the current tree
Top 10 Files
33.7%
of the total hotspot score
Median File Size
176 lines
half of the files are at least this large
Median Changes
19 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. 1pandas/core/frame.py20,584 lines · 3,424 changes
  2. 2pandas/core/generic.py13,117 lines · 2,284 changes
  3. 3pandas/core/series.py10,445 lines · 2,171 changes
  4. 4pandas/core/indexes/base.py9,407 lines · 1,499 changes
  5. 5pandas/core/groupby/groupby.py6,021 lines · 1,419 changes
  6. 6pandas/io/pytables.py6,809 lines · 871 changes
  7. 7pandas/core/indexes/multi.py5,450 lines · 744 changes
  8. 8pandas/core/indexing.py4,176 lines · 774 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,796 files