facebookincubator / Bowler
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 18 files with 2,006 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (641 lines of code)
    • 1 medium size files (296 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (703 lines of code)
    • 11 very small files (366 lines of code)
0% | 31% | 14% | 35% | 18%
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% | 39% | 18% | 35% | 6%
js0% | 0% | 0% | 40% | 59%
cfg0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
bowler0% | 39% | 18% | 35% | 5%
website/pages/en0% | 0% | 0% | 66% | 33%
website/core0% | 0% | 0% | 0% | 100%
website0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
website/static/css0% | 0% | 0% | 0% | 100%
Longest Files (Top 18)
File# lines# units
query.py
in bowler
641 36
tool.py
in bowler
296 14
imr.py
in bowler
185 6
helpers.py
in bowler
170 15
index.js
in website/pages/en
127 6
114 1
main.py
in bowler
107 5
Footer.js
in website/core
63 3
siteConfig.js
in website
63 -
types.py
in bowler
57 3
cfg
setup.cfg
in root
47 -
help.js
in website/pages/en
40 1
custom.css
in website/static/css
31 -
__init__.py
in bowler
29 -
users.js
in website/pages/en
23 -
setup.py
in root
7 -
__main__.py
in bowler
5 -
in
1 -
Files With Most Units (Top 10)
File# lines# units
query.py
in bowler
641 36
helpers.py
in bowler
170 15
tool.py
in bowler
296 14
index.js
in website/pages/en
127 6
imr.py
in bowler
185 6
main.py
in bowler
107 5
Footer.js
in website/core
63 3
types.py
in bowler
57 3
help.js
in website/pages/en
40 1
114 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there are 4 long lines.

File# lines# units# long lines
index.js
in website/pages/en
127 6 4
Correlations

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

website/pages/en/index.js x: 2 commits (all time) y: 127 lines of code website/static/css/custom.css x: 5 commits (all time) y: 31 lines of code website/siteConfig.js x: 2 commits (all time) y: 63 lines of code website/core/Footer.js x: 1 commits (all time) y: 63 lines of code bowler/query.py x: 48 commits (all time) y: 641 lines of code bowler/types.py x: 10 commits (all time) y: 57 lines of code bowler/__init__.py x: 14 commits (all time) y: 29 lines of code setup.cfg x: 6 commits (all time) y: 47 lines of code setup.py x: 11 commits (all time) y: 7 lines of code bowler/helpers.py x: 18 commits (all time) y: 170 lines of code bowler/main.py x: 25 commits (all time) y: 107 lines of code bowler/tool.py x: 49 commits (all time) y: 296 lines of code bowler/imr.py x: 8 commits (all time) y: 185 lines of code bowler/type_inference.py x: 5 commits (all time) y: 114 lines of code bowler/__main__.py x: 3 commits (all time) y: 5 lines of code
641.0
lines of code
  min: 5.0
  average: 129.47
  25th percentile: 31.0
  median: 63.0
  75th percentile: 170.0
  max: 641.0
0 49.0
commits (all time)
min: 1.0 | average: 13.8 | 25th percentile: 3.0 | median: 8.0 | 75th percentile: 18.0 | max: 49.0

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

website/pages/en/index.js x: 2 contributors (all time) y: 127 lines of code website/static/css/custom.css x: 4 contributors (all time) y: 31 lines of code website/siteConfig.js x: 1 contributors (all time) y: 63 lines of code bowler/query.py x: 15 contributors (all time) y: 641 lines of code bowler/types.py x: 6 contributors (all time) y: 57 lines of code bowler/__init__.py x: 6 contributors (all time) y: 29 lines of code setup.cfg x: 3 contributors (all time) y: 47 lines of code setup.py x: 3 contributors (all time) y: 7 lines of code bowler/helpers.py x: 5 contributors (all time) y: 170 lines of code bowler/main.py x: 11 contributors (all time) y: 107 lines of code bowler/tool.py x: 12 contributors (all time) y: 296 lines of code bowler/imr.py x: 4 contributors (all time) y: 185 lines of code bowler/type_inference.py x: 2 contributors (all time) y: 114 lines of code bowler/__main__.py x: 3 contributors (all time) y: 5 lines of code
641.0
lines of code
  min: 5.0
  average: 129.47
  25th percentile: 31.0
  median: 63.0
  75th percentile: 170.0
  max: 641.0
0 15.0
contributors (all time)
min: 1.0 | average: 5.2 | 25th percentile: 2.0 | median: 4.0 | 75th percentile: 6.0 | max: 15.0

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

website/pages/en/index.js x: 2 commits (30d) y: 127 lines of code website/static/css/custom.css x: 2 commits (30d) y: 31 lines of code
127.0
lines of code
  min: 31.0
  average: 79.0
  25th percentile: 31.0
  median: 79.0
  75th percentile: 127.0
  max: 127.0
0 2.0
commits (30d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

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

website/pages/en/index.js x: 2 contributors (30d) y: 127 lines of code website/static/css/custom.css x: 2 contributors (30d) y: 31 lines of code
127.0
lines of code
  min: 31.0
  average: 79.0
  25th percentile: 31.0
  median: 79.0
  75th percentile: 127.0
  max: 127.0
0 2.0
contributors (30d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

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

website/pages/en/index.js x: 2 commits (90d) y: 127 lines of code website/static/css/custom.css x: 2 commits (90d) y: 31 lines of code
127.0
lines of code
  min: 31.0
  average: 79.0
  25th percentile: 31.0
  median: 79.0
  75th percentile: 127.0
  max: 127.0
0 2.0
commits (90d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

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

website/pages/en/index.js x: 2 contributors (90d) y: 127 lines of code website/static/css/custom.css x: 2 contributors (90d) y: 31 lines of code
127.0
lines of code
  min: 31.0
  average: 79.0
  25th percentile: 31.0
  median: 79.0
  75th percentile: 127.0
  max: 127.0
0 2.0
contributors (90d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0