facebookincubator / ptr
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 6 files with 1,080 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (948 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 5 very small files (132 lines of code)
0% | 87% | 0% | 0% | 12%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 88% | 0% | 0% | 11%
yml0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 87% | 0% | 0% | 12%
Longest Files (Top 6)
File# lines# units
ptr.py
in root
948 28
ci.py
in root
69 3
setup.py
in root
49 1
action.yml
in root
9 -
3 -
in
2 -
Files With Most Units (Top 3)
File# lines# units
ptr.py
in root
948 28
ci.py
in root
69 3
setup.py
in root
49 1
Files With Long Lines (Top 0)

There are 0 files with lines longer than 120 characters. In total, there are 0 long lines.

File# lines# units# long lines
Correlations

File Size vs. Commits (all time): 6 points

pyproject.toml x: 1 commits (all time) y: 3 lines of code setup.py x: 61 commits (all time) y: 49 lines of code ci.py x: 31 commits (all time) y: 69 lines of code ptr.py x: 86 commits (all time) y: 948 lines of code action.yml x: 1 commits (all time) y: 9 lines of code MANIFEST.in x: 3 commits (all time) y: 2 lines of code
948.0
lines of code
  min: 2.0
  average: 180.0
  25th percentile: 2.75
  median: 29.0
  75th percentile: 288.75
  max: 948.0
0 86.0
commits (all time)
min: 1.0 | average: 30.5 | 25th percentile: 1.0 | median: 17.0 | 75th percentile: 67.25 | max: 86.0

File Size vs. Contributors (all time): 6 points

pyproject.toml x: 1 contributors (all time) y: 3 lines of code setup.py x: 7 contributors (all time) y: 49 lines of code ci.py x: 6 contributors (all time) y: 69 lines of code ptr.py x: 11 contributors (all time) y: 948 lines of code action.yml x: 1 contributors (all time) y: 9 lines of code MANIFEST.in x: 3 contributors (all time) y: 2 lines of code
948.0
lines of code
  min: 2.0
  average: 180.0
  25th percentile: 2.75
  median: 29.0
  75th percentile: 288.75
  max: 948.0
0 11.0
contributors (all time)
min: 1.0 | average: 4.83 | 25th percentile: 1.0 | median: 4.5 | 75th percentile: 8.0 | max: 11.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 4 points

pyproject.toml x: 1 commits (90d) y: 3 lines of code setup.py x: 4 commits (90d) y: 49 lines of code ci.py x: 1 commits (90d) y: 69 lines of code ptr.py x: 2 commits (90d) y: 948 lines of code
948.0
lines of code
  min: 3.0
  average: 267.25
  25th percentile: 14.5
  median: 59.0
  75th percentile: 728.25
  max: 948.0
0 4.0
commits (90d)
min: 1.0 | average: 2.0 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 3.5 | max: 4.0

File Size vs. Contributors (90 days): 4 points

pyproject.toml x: 1 contributors (90d) y: 3 lines of code setup.py x: 2 contributors (90d) y: 49 lines of code ci.py x: 1 contributors (90d) y: 69 lines of code ptr.py x: 2 contributors (90d) y: 948 lines of code
948.0
lines of code
  min: 3.0
  average: 267.25
  25th percentile: 14.5
  median: 59.0
  75th percentile: 728.25
  max: 948.0
0 2.0
contributors (90d)
min: 1.0 | average: 1.5 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 2.0 | max: 2.0