facebookincubator / OnlineSchemaChange
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 25 files with 6,825 lines of code.
    • 1 very long files (2,084 lines of code)
    • 4 long files (2,752 lines of code)
    • 4 medium size files (1,276 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (316 lines of code)
    • 13 very small files (397 lines of code)
30% | 40% | 18% | 4% | 5%
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
py30% | 40% | 18% | 4% | 5%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
core/lib/payload78% | 0% | 20% | 0% | 1%
core/lib/sqlparse0% | 98% | 0% | 0% | 1%
core/lib0% | 42% | 26% | 21% | 9%
core/commands0% | 0% | 66% | 0% | 33%
ROOT0% | 0% | 0% | 0% | 100%
core0% | 0% | 0% | 0% | 100%
Longest Files (Top 25)
File# lines# units
copy.py
in core/lib/payload
2084 119
create.py
in core/lib/sqlparse
830 11
diff.py
in core/lib/sqlparse
714 30
sql.py
in core/lib
612 46
models.py
in core/lib/sqlparse
596 58
error.py
in core/lib
380 5
copy.py
in core/commands
354 4
base.py
in core/lib/payload
339 35
cleanup.py
in core/lib/payload
203 16
db.py
in core/lib
106 14
util.py
in core/lib
105 11
hook.py
in core/lib
105 11
mysql_version.py
in core/lib
96 13
base.py
in core/commands
75 10
direct.py
in core/commands
55 3
cleanup.py
in core/commands
39 3
constant.py
in core/lib
36 -
__init__.py
in core/lib/sqlparse
32 -
direct.py
in core/lib/payload
28 1
setup.py
in root
23 -
__init__.py
in core/commands
8 -
cfg
setup.cfg
in root
2 -
1 -
__init__.py
in core/lib/payload
1 -
__init__.py
in core/lib
1 -
Files With Most Units (Top 17)
File# lines# units
copy.py
in core/lib/payload
2084 119
models.py
in core/lib/sqlparse
596 58
sql.py
in core/lib
612 46
base.py
in core/lib/payload
339 35
diff.py
in core/lib/sqlparse
714 30
cleanup.py
in core/lib/payload
203 16
db.py
in core/lib
106 14
mysql_version.py
in core/lib
96 13
create.py
in core/lib/sqlparse
830 11
util.py
in core/lib
105 11
hook.py
in core/lib
105 11
base.py
in core/commands
75 10
error.py
in core/lib
380 5
copy.py
in core/commands
354 4
cleanup.py
in core/commands
39 3
direct.py
in core/commands
55 3
direct.py
in core/lib/payload
28 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): 25 points

core/commands/copy.py x: 21 commits (all time) y: 354 lines of code core/lib/payload/base.py x: 19 commits (all time) y: 339 lines of code core/lib/payload/cleanup.py x: 17 commits (all time) y: 203 lines of code core/lib/payload/copy.py x: 83 commits (all time) y: 2084 lines of code core/lib/sqlparse/__init__.py x: 16 commits (all time) y: 32 lines of code core/lib/sqlparse/create.py x: 24 commits (all time) y: 830 lines of code core/lib/sqlparse/diff.py x: 25 commits (all time) y: 714 lines of code core/lib/sqlparse/models.py x: 17 commits (all time) y: 596 lines of code setup.py x: 9 commits (all time) y: 23 lines of code core/lib/constant.py x: 15 commits (all time) y: 36 lines of code core/lib/error.py x: 13 commits (all time) y: 380 lines of code core/lib/sql.py x: 25 commits (all time) y: 612 lines of code core/commands/__init__.py x: 3 commits (all time) y: 8 lines of code core/commands/cleanup.py x: 4 commits (all time) y: 39 lines of code core/commands/direct.py x: 4 commits (all time) y: 55 lines of code core/lib/db.py x: 6 commits (all time) y: 106 lines of code core/lib/hook.py x: 4 commits (all time) y: 105 lines of code core/lib/payload/direct.py x: 4 commits (all time) y: 28 lines of code core/lib/util.py x: 9 commits (all time) y: 105 lines of code core/commands/base.py x: 4 commits (all time) y: 75 lines of code core/lib/mysql_version.py x: 5 commits (all time) y: 96 lines of code core/__init__.py x: 2 commits (all time) y: 1 lines of code setup.cfg x: 1 commits (all time) y: 2 lines of code
2084.0
lines of code
  min: 1.0
  average: 273.0
  25th percentile: 25.5
  median: 96.0
  75th percentile: 367.0
  max: 2084.0
0 83.0
commits (all time)
min: 1.0 | average: 13.36 | 25th percentile: 4.0 | median: 9.0 | 75th percentile: 18.0 | max: 83.0

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

core/commands/copy.py x: 8 contributors (all time) y: 354 lines of code core/lib/payload/base.py x: 9 contributors (all time) y: 339 lines of code core/lib/payload/cleanup.py x: 8 contributors (all time) y: 203 lines of code core/lib/payload/copy.py x: 14 contributors (all time) y: 2084 lines of code core/lib/sqlparse/__init__.py x: 8 contributors (all time) y: 32 lines of code core/lib/sqlparse/create.py x: 10 contributors (all time) y: 830 lines of code core/lib/sqlparse/diff.py x: 7 contributors (all time) y: 714 lines of code core/lib/sqlparse/models.py x: 6 contributors (all time) y: 596 lines of code setup.py x: 4 contributors (all time) y: 23 lines of code core/lib/constant.py x: 8 contributors (all time) y: 36 lines of code core/lib/error.py x: 8 contributors (all time) y: 380 lines of code core/lib/sql.py x: 10 contributors (all time) y: 612 lines of code core/commands/__init__.py x: 3 contributors (all time) y: 8 lines of code core/commands/cleanup.py x: 3 contributors (all time) y: 39 lines of code core/commands/direct.py x: 3 contributors (all time) y: 55 lines of code core/lib/db.py x: 5 contributors (all time) y: 106 lines of code core/lib/hook.py x: 3 contributors (all time) y: 105 lines of code core/lib/payload/direct.py x: 3 contributors (all time) y: 28 lines of code core/commands/base.py x: 4 contributors (all time) y: 75 lines of code core/lib/mysql_version.py x: 5 contributors (all time) y: 96 lines of code core/__init__.py x: 2 contributors (all time) y: 1 lines of code setup.cfg x: 1 contributors (all time) y: 2 lines of code
2084.0
lines of code
  min: 1.0
  average: 273.0
  25th percentile: 25.5
  median: 96.0
  75th percentile: 367.0
  max: 2084.0
0 14.0
contributors (all time)
min: 1.0 | average: 5.64 | 25th percentile: 3.0 | median: 5.0 | 75th percentile: 8.0 | max: 14.0

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

core/commands/copy.py x: 2 commits (30d) y: 354 lines of code core/lib/payload/base.py x: 2 commits (30d) y: 339 lines of code core/lib/payload/cleanup.py x: 1 commits (30d) y: 203 lines of code core/lib/payload/copy.py x: 4 commits (30d) y: 2084 lines of code core/lib/sqlparse/__init__.py x: 1 commits (30d) y: 32 lines of code core/lib/sqlparse/create.py x: 1 commits (30d) y: 830 lines of code core/lib/sqlparse/diff.py x: 1 commits (30d) y: 714 lines of code core/lib/sqlparse/models.py x: 1 commits (30d) y: 596 lines of code setup.py x: 1 commits (30d) y: 23 lines of code core/lib/constant.py x: 1 commits (30d) y: 36 lines of code core/lib/error.py x: 1 commits (30d) y: 380 lines of code core/lib/sql.py x: 1 commits (30d) y: 612 lines of code
2084.0
lines of code
  min: 23.0
  average: 516.92
  25th percentile: 77.75
  median: 367.0
  75th percentile: 688.5
  max: 2084.0
0 4.0
commits (30d)
min: 1.0 | average: 1.42 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.75 | max: 4.0

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

core/commands/copy.py x: 2 contributors (30d) y: 354 lines of code core/lib/payload/base.py x: 2 contributors (30d) y: 339 lines of code core/lib/payload/cleanup.py x: 1 contributors (30d) y: 203 lines of code core/lib/payload/copy.py x: 3 contributors (30d) y: 2084 lines of code core/lib/sqlparse/__init__.py x: 1 contributors (30d) y: 32 lines of code core/lib/sqlparse/create.py x: 1 contributors (30d) y: 830 lines of code core/lib/sqlparse/diff.py x: 1 contributors (30d) y: 714 lines of code core/lib/sqlparse/models.py x: 1 contributors (30d) y: 596 lines of code setup.py x: 1 contributors (30d) y: 23 lines of code core/lib/constant.py x: 1 contributors (30d) y: 36 lines of code core/lib/error.py x: 1 contributors (30d) y: 380 lines of code core/lib/sql.py x: 1 contributors (30d) y: 612 lines of code
2084.0
lines of code
  min: 23.0
  average: 516.92
  25th percentile: 77.75
  median: 367.0
  75th percentile: 688.5
  max: 2084.0
0 3.0
contributors (30d)
min: 1.0 | average: 1.33 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.75 | max: 3.0

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

core/commands/copy.py x: 2 commits (90d) y: 354 lines of code core/lib/payload/base.py x: 2 commits (90d) y: 339 lines of code core/lib/payload/cleanup.py x: 1 commits (90d) y: 203 lines of code core/lib/payload/copy.py x: 4 commits (90d) y: 2084 lines of code core/lib/sqlparse/__init__.py x: 2 commits (90d) y: 32 lines of code core/lib/sqlparse/create.py x: 2 commits (90d) y: 830 lines of code core/lib/sqlparse/diff.py x: 4 commits (90d) y: 714 lines of code core/lib/sqlparse/models.py x: 2 commits (90d) y: 596 lines of code setup.py x: 1 commits (90d) y: 23 lines of code core/lib/constant.py x: 1 commits (90d) y: 36 lines of code core/lib/error.py x: 1 commits (90d) y: 380 lines of code core/lib/sql.py x: 1 commits (90d) y: 612 lines of code
2084.0
lines of code
  min: 23.0
  average: 516.92
  25th percentile: 77.75
  median: 367.0
  75th percentile: 688.5
  max: 2084.0
0 4.0
commits (90d)
min: 1.0 | average: 1.92 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 4.0

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

core/commands/copy.py x: 2 contributors (90d) y: 354 lines of code core/lib/payload/base.py x: 2 contributors (90d) y: 339 lines of code core/lib/payload/cleanup.py x: 1 contributors (90d) y: 203 lines of code core/lib/payload/copy.py x: 3 contributors (90d) y: 2084 lines of code core/lib/sqlparse/__init__.py x: 2 contributors (90d) y: 32 lines of code core/lib/sqlparse/create.py x: 2 contributors (90d) y: 830 lines of code core/lib/sqlparse/diff.py x: 2 contributors (90d) y: 714 lines of code core/lib/sqlparse/models.py x: 2 contributors (90d) y: 596 lines of code setup.py x: 1 contributors (90d) y: 23 lines of code core/lib/constant.py x: 1 contributors (90d) y: 36 lines of code core/lib/error.py x: 1 contributors (90d) y: 380 lines of code core/lib/sql.py x: 1 contributors (90d) y: 612 lines of code
2084.0
lines of code
  min: 23.0
  average: 516.92
  25th percentile: 77.75
  median: 367.0
  75th percentile: 688.5
  max: 2084.0
0 3.0
contributors (90d)
min: 1.0 | average: 1.67 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 3.0