facebookincubator / later
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 14 files with 2,534 lines of code.
    • 1 very long files (1,816 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (230 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (310 lines of code)
    • 10 very small files (178 lines of code)
71% | 0% | 9% | 12% | 7%
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
py73% | 0% | 9% | 12% | 4%
pyi0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
later/unittest/backport88% | 0% | 0% | 8% | 2%
later0% | 0% | 85% | 0% | 14%
later/unittest0% | 0% | 0% | 82% | 17%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 14)
File# lines# units
mock.py
in later/unittest/backport
1816 140
task.py
in later
230 8
async_case.py
in later/unittest/backport
183 15
case.py
in later/unittest
127 13
setup.py
in root
48 2
pyi
mock.pyi
in later/unittest/backport
32 7
event.py
in later
26 3
mock.py
in later/unittest
25 1
cfg
setup.cfg
in root
19 -
__init__.py
in later
13 -
pyi
async_case.pyi
in later/unittest/backport
9 1
in
3 -
__init__.py
in later/unittest
2 -
__init__.py
in later/unittest/backport
1 -
Files With Most Units (Top 9)
File# lines# units
mock.py
in later/unittest/backport
1816 140
async_case.py
in later/unittest/backport
183 15
case.py
in later/unittest
127 13
task.py
in later
230 8
pyi
mock.pyi
in later/unittest/backport
32 7
event.py
in later
26 3
setup.py
in root
48 2
pyi
async_case.pyi
in later/unittest/backport
9 1
mock.py
in later/unittest
25 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): 10 points

later/event.py x: 1 commits (all time) y: 26 lines of code later/unittest/case.py x: 7 commits (all time) y: 127 lines of code later/unittest/mock.py x: 2 commits (all time) y: 25 lines of code later/task.py x: 2 commits (all time) y: 230 lines of code later/unittest/backport/mock.py x: 1 commits (all time) y: 1816 lines of code later/__init__.py x: 3 commits (all time) y: 13 lines of code later/unittest/backport/mock.pyi x: 1 commits (all time) y: 32 lines of code setup.py x: 2 commits (all time) y: 48 lines of code setup.cfg x: 2 commits (all time) y: 19 lines of code later/unittest/backport/__init__.py x: 1 commits (all time) y: 1 lines of code
1816.0
lines of code
  min: 1.0
  average: 233.7
  25th percentile: 17.5
  median: 29.0
  75th percentile: 152.75
  max: 1816.0
0 7.0
commits (all time)
min: 1.0 | average: 2.2 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.25 | max: 7.0

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

later/event.py x: 1 contributors (all time) y: 26 lines of code later/unittest/case.py x: 6 contributors (all time) y: 127 lines of code later/unittest/mock.py x: 2 contributors (all time) y: 25 lines of code later/task.py x: 2 contributors (all time) y: 230 lines of code later/unittest/backport/mock.py x: 1 contributors (all time) y: 1816 lines of code later/__init__.py x: 2 contributors (all time) y: 13 lines of code later/unittest/backport/mock.pyi x: 1 contributors (all time) y: 32 lines of code setup.py x: 2 contributors (all time) y: 48 lines of code setup.cfg x: 1 contributors (all time) y: 19 lines of code later/unittest/backport/__init__.py x: 1 contributors (all time) y: 1 lines of code
1816.0
lines of code
  min: 1.0
  average: 233.7
  25th percentile: 17.5
  median: 29.0
  75th percentile: 152.75
  max: 1816.0
0 6.0
contributors (all time)
min: 1.0 | average: 1.9 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 2.0 | max: 6.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): 3 points

later/event.py x: 1 commits (90d) y: 26 lines of code later/unittest/case.py x: 1 commits (90d) y: 127 lines of code later/unittest/mock.py x: 1 commits (90d) y: 25 lines of code
127.0
lines of code
  min: 25.0
  average: 59.33
  25th percentile: 25.0
  median: 26.0
  75th percentile: 127.0
  max: 127.0
0 1.0
commits (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

later/event.py x: 1 contributors (90d) y: 26 lines of code later/unittest/case.py x: 1 contributors (90d) y: 127 lines of code later/unittest/mock.py x: 1 contributors (90d) y: 25 lines of code
127.0
lines of code
  min: 25.0
  average: 59.33
  25th percentile: 25.0
  median: 26.0
  75th percentile: 127.0
  max: 127.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0