facebookincubator / zk
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 64 files with 4,704 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (226 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,385 lines of code)
    • 54 very small files (3,093 lines of code)
0% | 0% | 4% | 29% | 65%
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% | 4% | 29% | 65%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
internal/proto0% | 0% | 7% | 15% | 77%
internal/data0% | 0% | 0% | 66% | 33%
ROOT0% | 0% | 0% | 47% | 52%
flw0% | 0% | 0% | 74% | 25%
integration0% | 0% | 0% | 65% | 34%
example0% | 0% | 0% | 0% | 100%
internal0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
setwatches2.go
in internal/proto
226 9
conn.go
in root
197 12
stat.go
in internal/data
185 14
flw.go
in flw
183 8
create_server.go
in integration
174 8
statpersisted.go
in internal/data
157 12
setwatches.go
in internal/proto
154 7
createttlrequest.go
in internal/proto
124 8
createrequest.go
in internal/proto
110 7
connectrequest.go
in internal/proto
101 8
setaclrequest.go
in internal/proto
96 6
server_config.go
in integration
90 2
connectresponse.go
in internal/proto
87 7
reconfigrequest.go
in internal/proto
87 7
getchildren2response.go
in internal/proto
82 5
getaclresponse.go
in internal/proto
81 5
errors.go
in root
77 1
authpacket.go
in internal/proto
73 6
setdatarequest.go
in internal/proto
73 6
replyheader.go
in internal/proto
73 6
multiheader.go
in internal/proto
73 6
watcherevent.go
in internal/proto
73 6
client.go
in root
69 5
whoamiresponse.go
in internal/proto
68 4
getchildrenresponse.go
in internal/proto
68 4
getephemeralsresponse.go
in internal/proto
68 4
main.go
in example
61 1
util.go
in root
61 3
removewatchesrequest.go
in internal/proto
59 5
checkversionrequest.go
in internal/proto
59 5
existsrequest.go
in internal/proto
59 5
setmaxchildrenrequest.go
in internal/proto
59 5
create2response.go
in internal/proto
59 5
getdatarequest.go
in internal/proto
59 5
getdataresponse.go
in internal/proto
59 5
checkwatchesrequest.go
in internal/proto
59 5
deleterequest.go
in internal/proto
59 5
requestheader.go
in internal/proto
59 5
getchildrenrequest.go
in internal/proto
59 5
addwatchrequest.go
in internal/proto
59 5
getchildren2request.go
in internal/proto
59 5
id.go
in internal/data
59 5
clientinfo.go
in internal/data
59 5
acl.go
in internal/data
58 5
getephemeralsrequest.go
in internal/proto
45 4
setaclresponse.go
in internal/proto
45 4
syncrequest.go
in internal/proto
45 4
createresponse.go
in internal/proto
45 4
setdataresponse.go
in internal/proto
45 4
getaclrequest.go
in internal/proto
45 4
Files With Most Units (Top 50)
File# lines# units
stat.go
in internal/data
185 14
statpersisted.go
in internal/data
157 12
conn.go
in root
197 12
setwatches2.go
in internal/proto
226 9
flw.go
in flw
183 8
create_server.go
in integration
174 8
connectrequest.go
in internal/proto
101 8
createttlrequest.go
in internal/proto
124 8
setwatches.go
in internal/proto
154 7
createrequest.go
in internal/proto
110 7
connectresponse.go
in internal/proto
87 7
reconfigrequest.go
in internal/proto
87 7
authpacket.go
in internal/proto
73 6
setdatarequest.go
in internal/proto
73 6
replyheader.go
in internal/proto
73 6
setaclrequest.go
in internal/proto
96 6
multiheader.go
in internal/proto
73 6
watcherevent.go
in internal/proto
73 6
removewatchesrequest.go
in internal/proto
59 5
checkversionrequest.go
in internal/proto
59 5
existsrequest.go
in internal/proto
59 5
setmaxchildrenrequest.go
in internal/proto
59 5
create2response.go
in internal/proto
59 5
getdatarequest.go
in internal/proto
59 5
getaclresponse.go
in internal/proto
81 5
getdataresponse.go
in internal/proto
59 5
checkwatchesrequest.go
in internal/proto
59 5
deleterequest.go
in internal/proto
59 5
getchildren2response.go
in internal/proto
82 5
requestheader.go
in internal/proto
59 5
getchildrenrequest.go
in internal/proto
59 5
addwatchrequest.go
in internal/proto
59 5
getchildren2request.go
in internal/proto
59 5
id.go
in internal/data
59 5
clientinfo.go
in internal/data
59 5
acl.go
in internal/data
58 5
client.go
in root
69 5
getephemeralsrequest.go
in internal/proto
45 4
setaclresponse.go
in internal/proto
45 4
syncrequest.go
in internal/proto
45 4
createresponse.go
in internal/proto
45 4
setdataresponse.go
in internal/proto
45 4
whoamiresponse.go
in internal/proto
68 4
getaclrequest.go
in internal/proto
45 4
45 4
setsaslresponse.go
in internal/proto
45 4
getmaxchildrenrequest.go
in internal/proto
45 4
getmaxchildrenresponse.go
in internal/proto
45 4
getchildrenresponse.go
in internal/proto
68 4
existsresponse.go
in internal/proto
45 4
Files With Long Lines (Top 1)

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

File# lines# units# long lines
flw.go
in flw
183 8 2
Correlations

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

conn.go x: 7 commits (all time) y: 197 lines of code
197.0
lines of code
  min: 197.0
  average: 197.0
  25th percentile: 197.0
  median: 197.0
  75th percentile: 197.0
  max: 197.0
0 7.0
commits (all time)
min: 7.0 | average: 7.0 | 25th percentile: 7.0 | median: 7.0 | 75th percentile: 7.0 | max: 7.0

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

conn.go x: 2 contributors (all time) y: 197 lines of code
197.0
lines of code
  min: 197.0
  average: 197.0
  25th percentile: 197.0
  median: 197.0
  75th percentile: 197.0
  max: 197.0
0 2.0
contributors (all time)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.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".