facebookincubator / automerge
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 21 files with 5,336 lines of code.
    • 1 very long files (1,420 lines of code)
    • 2 long files (1,656 lines of code)
    • 5 medium size files (1,460 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (406 lines of code)
    • 10 very small files (394 lines of code)
26% | 31% | 27% | 7% | 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
js26% | 31% | 27% | 7% | 7%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
backend40% | 47% | 8% | 0% | 3%
frontend0% | 0% | 73% | 17% | 9%
src0% | 0% | 0% | 73% | 26%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
new.js
in backend
1420 44
columnar.js
in backend
846 39
encoding.js
in backend
810 67
context.js
in frontend
401 22
index.js
in frontend
339 18
sync.js
in backend
293 17
proxies.js
in frontend
223 15
apply_patch.js
in frontend
204 11
table.js
in frontend
148 20
text.js
in frontend
129 9
129 21
backend.js
in backend
93 16
observable.js
in frontend
80 4
80 1
counter.js
in frontend
36 7
common.js
in src
36 5
numbers.js
in frontend
28 3
util.js
in backend
13 1
uuid.js
in src
11 2
constants.js
in frontend
10 -
index.js
in backend
7 -
Files With Most Units (Top 19)
File# lines# units
encoding.js
in backend
810 67
new.js
in backend
1420 44
columnar.js
in backend
846 39
context.js
in frontend
401 22
129 21
table.js
in frontend
148 20
index.js
in frontend
339 18
sync.js
in backend
293 17
backend.js
in backend
93 16
proxies.js
in frontend
223 15
apply_patch.js
in frontend
204 11
text.js
in frontend
129 9
counter.js
in frontend
36 7
common.js
in src
36 5
observable.js
in frontend
80 4
numbers.js
in frontend
28 3
uuid.js
in src
11 2
80 1
util.js
in backend
13 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
new.js
in backend
1420 44 23
context.js
in frontend
401 22 5
observable.js
in frontend
80 4 4
index.js
in backend
7 - 3
index.js
in frontend
339 18 1
sync.js
in backend
293 17 1
columnar.js
in backend
846 39 1
Correlations

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

backend/new.js x: 36 commits (all time) y: 1420 lines of code backend/backend.js x: 30 commits (all time) y: 93 lines of code backend/columnar.js x: 117 commits (all time) y: 846 lines of code backend/encoding.js x: 45 commits (all time) y: 810 lines of code backend/sync.js x: 45 commits (all time) y: 293 lines of code frontend/context.js x: 89 commits (all time) y: 401 lines of code karma.sauce.js x: 24 commits (all time) y: 80 lines of code frontend/proxies.js x: 50 commits (all time) y: 223 lines of code src/common.js x: 22 commits (all time) y: 36 lines of code src/uuid.js x: 8 commits (all time) y: 11 lines of code frontend/apply_patch.js x: 61 commits (all time) y: 204 lines of code frontend/index.js x: 111 commits (all time) y: 339 lines of code frontend/numbers.js x: 5 commits (all time) y: 28 lines of code src/automerge.js x: 156 commits (all time) y: 129 lines of code backend/index.js x: 93 commits (all time) y: 7 lines of code backend/util.js x: 4 commits (all time) y: 13 lines of code frontend/constants.js x: 20 commits (all time) y: 10 lines of code frontend/counter.js x: 8 commits (all time) y: 36 lines of code frontend/observable.js x: 12 commits (all time) y: 80 lines of code frontend/table.js x: 28 commits (all time) y: 148 lines of code frontend/text.js x: 37 commits (all time) y: 129 lines of code
1420.0
lines of code
  min: 7.0
  average: 254.1
  25th percentile: 32.0
  median: 129.0
  75th percentile: 316.0
  max: 1420.0
0 156.0
commits (all time)
min: 4.0 | average: 47.67 | 25th percentile: 16.0 | median: 36.0 | 75th percentile: 75.0 | max: 156.0

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

backend/new.js x: 1 contributors (all time) y: 1420 lines of code backend/backend.js x: 4 contributors (all time) y: 93 lines of code backend/columnar.js x: 5 contributors (all time) y: 846 lines of code backend/encoding.js x: 1 contributors (all time) y: 810 lines of code backend/sync.js x: 5 contributors (all time) y: 293 lines of code frontend/context.js x: 8 contributors (all time) y: 401 lines of code karma.sauce.js x: 5 contributors (all time) y: 80 lines of code frontend/proxies.js x: 8 contributors (all time) y: 223 lines of code src/common.js x: 3 contributors (all time) y: 36 lines of code src/uuid.js x: 4 contributors (all time) y: 11 lines of code frontend/apply_patch.js x: 7 contributors (all time) y: 204 lines of code frontend/index.js x: 5 contributors (all time) y: 339 lines of code frontend/numbers.js x: 2 contributors (all time) y: 28 lines of code src/automerge.js x: 11 contributors (all time) y: 129 lines of code backend/index.js x: 6 contributors (all time) y: 7 lines of code backend/util.js x: 2 contributors (all time) y: 13 lines of code frontend/constants.js x: 2 contributors (all time) y: 10 lines of code frontend/counter.js x: 1 contributors (all time) y: 36 lines of code frontend/observable.js x: 3 contributors (all time) y: 80 lines of code frontend/table.js x: 2 contributors (all time) y: 148 lines of code frontend/text.js x: 8 contributors (all time) y: 129 lines of code
1420.0
lines of code
  min: 7.0
  average: 254.1
  25th percentile: 32.0
  median: 129.0
  75th percentile: 316.0
  max: 1420.0
0 11.0
contributors (all time)
min: 1.0 | average: 4.43 | 25th percentile: 2.0 | median: 4.0 | 75th percentile: 6.5 | 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): 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".