Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Code churn in 51 Python repos: Django's busiest 10% of files take 96% of the changes

TL;DR Code churn is lines added plus lines deleted per file over a time window. Over 90 days, in the median of 51 popular Python repos, the busiest 10% of production files took 66% of all churn and the busiest 1% took 23%. Django sits at the top of that range: 96% of its 90-day churn landed in 10% of its production files at its July index. A fresh git log run on 17 November gives 92%. The spread…

Code churn, measured as the number of added plus deleted lines in files over a period, was analyzed across 51 popular Python repositories. In the median of these repositories, 10% of production files accounted for 96% of the churn in Django, with the busiest tenth of the codebase taking 96% of every line added or deleted over 90 days.

This pattern was observed in 39 out of the 51 repositories, where half or more of the churn landed in 10% of files. The analysis found that churn concentration varies greatly between repositories, depending on the number of files changed during the period. Repositories with fewer than half of their files changed have a median churn concentration of 93% in the busiest 10% of files, while those with nearly every file moved see a median of 46%.

The script provided can be used to measure churn concentration for any set of paths in a Git repository.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

I wrote a (free) book on Quantum Computing for Software Engineers

Some time ago I received a grant from Unitary Foundation, a non-profit organization supporting open source and other initiatives in quantum computing.

  • "Quantum Computing for Software Engineers" book created for free
  • Author's software engineering background spans four and a half years
  • Book covers quantum computing basics, superconducting computers, industry landscape

More from Sunday, 29 November 2026 →