facebook / regenerator
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 16 files with 2,175 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (857 lines of code)
    • 2 medium size files (753 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (231 lines of code)
    • 11 very small files (334 lines of code)
0% | 39% | 34% | 10% | 15%
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
js0% | 39% | 34% | 10% | 15%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
packages/transform/src0% | 57% | 16% | 15% | 10%
packages/runtime0% | 0% | 99% | 0% | <1%
lib0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
packages/preset0% | 0% | 0% | 0% | 100%
Longest Files (Top 16)
File# lines# units
emit.js
in packages/transform/src
857 34
runtime.js
in packages/runtime
500 39
visit.js
in packages/transform/src
253 12
leap.js
in packages/transform/src
130 13
hoist.js
in packages/transform/src
101 8
meta.js
in packages/transform/src
76 5
util.js
in lib
71 3
main.js
in root
56 6
util.js
in packages/transform/src
33 5
replaceShorthandObjectMethod.js
in packages/transform/src
32 1
visit.js
in lib
30 1
index.js
in packages/preset
11 -
index.js
in packages/transform/src
11 2
runtime.js
in root
5 -
5 -
path.js
in packages/runtime
4 -
Files With Most Units (Top 12)
File# lines# units
runtime.js
in packages/runtime
500 39
emit.js
in packages/transform/src
857 34
leap.js
in packages/transform/src
130 13
visit.js
in packages/transform/src
253 12
hoist.js
in packages/transform/src
101 8
main.js
in root
56 6
util.js
in packages/transform/src
33 5
meta.js
in packages/transform/src
76 5
util.js
in lib
71 3
index.js
in packages/transform/src
11 2
replaceShorthandObjectMethod.js
in packages/transform/src
32 1
visit.js
in lib
30 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): 16 points

packages/transform/src/emit.js x: 5 commits (all time) y: 857 lines of code lib/visit.js x: 62 commits (all time) y: 30 lines of code packages/runtime/runtime.js x: 2 commits (all time) y: 500 lines of code packages/preset/index.js x: 1 commits (all time) y: 11 lines of code packages/runtime/path.js x: 1 commits (all time) y: 4 lines of code packages/transform/src/hoist.js x: 1 commits (all time) y: 101 lines of code packages/transform/src/leap.js x: 1 commits (all time) y: 130 lines of code packages/transform/src/meta.js x: 1 commits (all time) y: 76 lines of code packages/transform/src/replaceShorthandObjectMethod.js x: 1 commits (all time) y: 32 lines of code packages/transform/src/visit.js x: 1 commits (all time) y: 253 lines of code main.js x: 58 commits (all time) y: 56 lines of code lib/util.js x: 17 commits (all time) y: 71 lines of code runtime-module.js x: 14 commits (all time) y: 5 lines of code runtime.js x: 66 commits (all time) y: 5 lines of code
857.0
lines of code
  min: 4.0
  average: 135.94
  25th percentile: 11.0
  median: 44.5
  75th percentile: 122.75
  max: 857.0
0 66.0
commits (all time)
min: 1.0 | average: 14.56 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 16.25 | max: 66.0

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

packages/transform/src/emit.js x: 2 contributors (all time) y: 857 lines of code lib/visit.js x: 8 contributors (all time) y: 30 lines of code packages/runtime/runtime.js x: 2 contributors (all time) y: 500 lines of code packages/preset/index.js x: 1 contributors (all time) y: 11 lines of code packages/runtime/path.js x: 1 contributors (all time) y: 4 lines of code packages/transform/src/hoist.js x: 1 contributors (all time) y: 101 lines of code packages/transform/src/leap.js x: 1 contributors (all time) y: 130 lines of code packages/transform/src/meta.js x: 1 contributors (all time) y: 76 lines of code packages/transform/src/replaceShorthandObjectMethod.js x: 1 contributors (all time) y: 32 lines of code packages/transform/src/visit.js x: 1 contributors (all time) y: 253 lines of code main.js x: 12 contributors (all time) y: 56 lines of code lib/util.js x: 5 contributors (all time) y: 71 lines of code runtime-module.js x: 6 contributors (all time) y: 5 lines of code runtime.js x: 10 contributors (all time) y: 5 lines of code
857.0
lines of code
  min: 4.0
  average: 135.94
  25th percentile: 11.0
  median: 44.5
  75th percentile: 122.75
  max: 857.0
0 12.0
contributors (all time)
min: 1.0 | average: 3.38 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 5.75 | max: 12.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): 0 points

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

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

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