facebookincubator / sks
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 22 files with 1,910 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (549 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (907 lines of code)
    • 13 very small files (454 lines of code)
0% | 0% | 28% | 47% | 23%
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
go0% | 0% | 19% | 52% | 27%
c0% | 0% | 62% | 37% | 0%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
linux0% | 0% | 35% | 49% | 14%
macos0% | 0% | 42% | 46% | 10%
ROOT0% | 0% | 0% | 63% | 36%
diskio0% | 0% | 0% | 0% | 100%
utils0% | 0% | 0% | 0% | 100%
Longest Files (Top 22)
File# lines# units
tpm.go
in linux
275 8
macos.c
in macos
274 10
midtier.c
in macos
165 6
wrapper.go
in macos
137 8
sks.go
in linux
136 5
tpm_keys.go
in linux
129 11
key.go
in root
120 12
handler.go
in linux
117 6
103 7
diskdb.go
in diskio
89 7
70 7
51 -
46 6
templates.go
in linux
43 3
macos.h
in macos
39 -
midtier.h
in macos
28 -
structures.go
in diskio
24 -
encoding.go
in utils
24 2
constants.go
in linux
16 -
errors.go
in root
12 -
crypto.go
in utils
8 -
constants.go
in diskio
4 -
Files With Most Units (Top 14)
File# lines# units
key.go
in root
120 12
tpm_keys.go
in linux
129 11
macos.c
in macos
274 10
wrapper.go
in macos
137 8
tpm.go
in linux
275 8
70 7
diskdb.go
in diskio
89 7
103 7
midtier.c
in macos
165 6
46 6
handler.go
in linux
117 6
sks.go
in linux
136 5
templates.go
in linux
43 3
encoding.go
in utils
24 2
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 3 long lines.

File# lines# units# long lines
tpm.go
in linux
275 8 2
51 - 1
Correlations

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

utils/crypto.go x: 1 commits (all time) y: 8 lines of code linux/sks.go x: 1 commits (all time) y: 136 lines of code linux/structures.go x: 1 commits (all time) y: 51 lines of code linux/tpm.go x: 1 commits (all time) y: 275 lines of code linux/tpm_keys.go x: 1 commits (all time) y: 129 lines of code sks_darwin.go x: 2 commits (all time) y: 46 lines of code sks_linux.go x: 1 commits (all time) y: 70 lines of code sks_windows.go x: 1 commits (all time) y: 103 lines of code errors.go x: 1 commits (all time) y: 12 lines of code key.go x: 2 commits (all time) y: 120 lines of code macos/wrapper.go x: 1 commits (all time) y: 137 lines of code
275.0
lines of code
  min: 8.0
  average: 113.42
  25th percentile: 47.25
  median: 111.5
  75th percentile: 136.75
  max: 275.0
0 2.0
commits (all time)
min: 1.0 | average: 1.17 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

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

utils/crypto.go x: 1 contributors (all time) y: 8 lines of code linux/sks.go x: 1 contributors (all time) y: 136 lines of code linux/structures.go x: 1 contributors (all time) y: 51 lines of code linux/tpm.go x: 1 contributors (all time) y: 275 lines of code linux/tpm_keys.go x: 1 contributors (all time) y: 129 lines of code sks_darwin.go x: 2 contributors (all time) y: 46 lines of code sks_linux.go x: 1 contributors (all time) y: 70 lines of code sks_windows.go x: 1 contributors (all time) y: 103 lines of code errors.go x: 1 contributors (all time) y: 12 lines of code key.go x: 1 contributors (all time) y: 120 lines of code macos/wrapper.go x: 1 contributors (all time) y: 137 lines of code
275.0
lines of code
  min: 8.0
  average: 113.42
  25th percentile: 47.25
  median: 111.5
  75th percentile: 136.75
  max: 275.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.08 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

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

utils/crypto.go x: 1 commits (30d) y: 8 lines of code linux/sks.go x: 1 commits (30d) y: 136 lines of code linux/structures.go x: 1 commits (30d) y: 51 lines of code linux/tpm.go x: 1 commits (30d) y: 275 lines of code linux/tpm_keys.go x: 1 commits (30d) y: 129 lines of code sks_darwin.go x: 1 commits (30d) y: 46 lines of code sks_linux.go x: 1 commits (30d) y: 70 lines of code sks_windows.go x: 1 commits (30d) y: 103 lines of code
275.0
lines of code
  min: 8.0
  average: 102.25
  25th percentile: 47.25
  median: 86.5
  75th percentile: 134.25
  max: 275.0
0 1.0
commits (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

utils/crypto.go x: 1 contributors (30d) y: 8 lines of code linux/sks.go x: 1 contributors (30d) y: 136 lines of code linux/structures.go x: 1 contributors (30d) y: 51 lines of code linux/tpm.go x: 1 contributors (30d) y: 275 lines of code linux/tpm_keys.go x: 1 contributors (30d) y: 129 lines of code sks_darwin.go x: 1 contributors (30d) y: 46 lines of code sks_linux.go x: 1 contributors (30d) y: 70 lines of code sks_windows.go x: 1 contributors (30d) y: 103 lines of code
275.0
lines of code
  min: 8.0
  average: 102.25
  25th percentile: 47.25
  median: 86.5
  75th percentile: 134.25
  max: 275.0
0 1.0
contributors (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

utils/crypto.go x: 1 commits (90d) y: 8 lines of code linux/sks.go x: 1 commits (90d) y: 136 lines of code linux/structures.go x: 1 commits (90d) y: 51 lines of code linux/tpm.go x: 1 commits (90d) y: 275 lines of code linux/tpm_keys.go x: 1 commits (90d) y: 129 lines of code sks_darwin.go x: 2 commits (90d) y: 46 lines of code sks_linux.go x: 1 commits (90d) y: 70 lines of code sks_windows.go x: 1 commits (90d) y: 103 lines of code errors.go x: 1 commits (90d) y: 12 lines of code key.go x: 2 commits (90d) y: 120 lines of code macos/wrapper.go x: 1 commits (90d) y: 137 lines of code
275.0
lines of code
  min: 8.0
  average: 113.42
  25th percentile: 47.25
  median: 111.5
  75th percentile: 136.75
  max: 275.0
0 2.0
commits (90d)
min: 1.0 | average: 1.17 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

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

utils/crypto.go x: 1 contributors (90d) y: 8 lines of code linux/sks.go x: 1 contributors (90d) y: 136 lines of code linux/structures.go x: 1 contributors (90d) y: 51 lines of code linux/tpm.go x: 1 contributors (90d) y: 275 lines of code linux/tpm_keys.go x: 1 contributors (90d) y: 129 lines of code sks_darwin.go x: 2 contributors (90d) y: 46 lines of code sks_linux.go x: 1 contributors (90d) y: 70 lines of code sks_windows.go x: 1 contributors (90d) y: 103 lines of code errors.go x: 1 contributors (90d) y: 12 lines of code key.go x: 1 contributors (90d) y: 120 lines of code macos/wrapper.go x: 1 contributors (90d) y: 137 lines of code
275.0
lines of code
  min: 8.0
  average: 113.42
  25th percentile: 47.25
  median: 111.5
  75th percentile: 136.75
  max: 275.0
0 2.0
contributors (90d)
min: 1.0 | average: 1.08 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0