facebook / wdt
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 81 files with 15,380 lines of code.
    • 0 very long files (0 lines of code)
    • 6 long files (4,811 lines of code)
    • 19 medium size files (6,197 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (2,066 lines of code)
    • 42 very small files (2,306 lines of code)
0% | 31% | 40% | 13% | 14%
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
cpp0% | 42% | 45% | 7% | 4%
h0% | 0% | 25% | 26% | 47%
tcl0% | 0% | 37% | 28% | 34%
inc0% | 0% | 0% | 100% | 0%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 32% | 48% | 5% | 14%
util0% | 35% | 30% | 22% | 12%
bench0% | 0% | 60% | 0% | 39%
build0% | 0% | 36% | 27% | 35%
Longest Files (Top 50)
File# lines# units
991 48
925 26
923 25
734 43
638 42
600 31
500 33
477 20
448 20
443 5
436 22
Sender.cpp
in root
417 20
356 52
346 15
316 7
302 10
283 9
Stats.h
in util
270 27
Protocol.h
in root
249 11
244 15
237 21
232 28
Stats.cpp
in util
226 12
214 -
Wdt.cpp
in root
201 10
176 5
173 6
169 2
163 -
161 18
161 21
159 -
156 5
143 -
139 6
128 9
123 1
108 4
107 2
97 -
95 -
91 2
WdtBase.h
in root
87 2
86 -
85 3
Sender.h
in root
83 2
82 14
80 -
Bigram.cpp
in bench
75 7
75 4
Files With Most Units (Top 50)
File# lines# units
356 52
991 48
734 43
638 42
500 33
600 31
232 28
Stats.h
in util
270 27
925 26
923 25
436 22
237 21
161 21
Sender.cpp
in root
417 20
477 20
448 20
161 18
346 15
72 15
244 15
82 14
Stats.cpp
in util
226 12
Protocol.h
in root
249 11
302 10
Wdt.cpp
in root
201 10
128 9
283 9
Bigram.cpp
in bench
75 7
316 7
139 6
173 6
72 6
156 5
58 5
176 5
443 5
108 4
75 4
67 4
50 4
85 3
32 3
23 3
42 3
Wdt.h
in root
62 3
WdtBase.h
in root
87 2
169 2
91 2
Sender.h
in root
83 2
107 2
Files With Long Lines (Top 2)

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

File# lines# units# long lines
214 - 3
163 - 1
Correlations

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

Sender.h x: 73 commits (all time) y: 83 lines of code bench/Bigram.cpp x: 3 commits (all time) y: 75 lines of code bench/wdtGenFiles.cpp x: 8 commits (all time) y: 346 lines of code bench/wdtGenTest.cpp x: 5 commits (all time) y: 53 lines of code bench/wdtStats.cpp x: 6 commits (all time) y: 56 lines of code util/Stats.cpp x: 4 commits (all time) y: 226 lines of code util/WdtFlags.cpp x: 10 commits (all time) y: 50 lines of code build/folly-config.h.in x: 11 commits (all time) y: 12 lines of code util/FileCreator.cpp x: 14 commits (all time) y: 302 lines of code util/ServerSocket.cpp x: 18 commits (all time) y: 283 lines of code Receiver.cpp x: 100 commits (all time) y: 477 lines of code Receiver.h x: 62 commits (all time) y: 72 lines of code AbortChecker.h x: 6 commits (all time) y: 23 lines of code ByteSource.h x: 26 commits (all time) y: 40 lines of code ErrorCodes.cpp x: 10 commits (all time) y: 32 lines of code ErrorCodes.h x: 33 commits (all time) y: 86 lines of code Protocol.cpp x: 40 commits (all time) y: 500 lines of code Protocol.h x: 42 commits (all time) y: 249 lines of code ReceiverThread.cpp x: 40 commits (all time) y: 923 lines of code ReceiverThread.h x: 12 commits (all time) y: 80 lines of code Reporting.cpp x: 54 commits (all time) y: 443 lines of code Reporting.h x: 45 commits (all time) y: 356 lines of code Sender.cpp x: 116 commits (all time) y: 417 lines of code SenderThread.cpp x: 37 commits (all time) y: 925 lines of code SenderThread.h x: 15 commits (all time) y: 107 lines of code SourceQueue.h x: 12 commits (all time) y: 17 lines of code Throttler.cpp x: 23 commits (all time) y: 237 lines of code Throttler.h x: 22 commits (all time) y: 65 lines of code Wdt.h x: 19 commits (all time) y: 62 lines of code WdtBase.cpp x: 32 commits (all time) y: 161 lines of code WdtBase.h x: 34 commits (all time) y: 87 lines of code WdtConfig.h.in x: 9 commits (all time) y: 22 lines of code WdtOptions.cpp x: 19 commits (all time) y: 72 lines of code WdtOptions.h x: 66 commits (all time) y: 95 lines of code WdtResourceController.cpp x: 29 commits (all time) y: 638 lines of code WdtResourceController.h x: 24 commits (all time) y: 123 lines of code WdtThread.cpp x: 7 commits (all time) y: 42 lines of code WdtThread.h x: 11 commits (all time) y: 63 lines of code WdtTransferRequest.cpp x: 12 commits (all time) y: 448 lines of code WdtTransferRequest.h x: 16 commits (all time) y: 97 lines of code Writer.h x: 6 commits (all time) y: 16 lines of code bench/Bigram.h x: 2 commits (all time) y: 38 lines of code bench/WdtGenTestUtils.cpp x: 2 commits (all time) y: 1 lines of code util/ClientSocket.cpp x: 21 commits (all time) y: 169 lines of code util/ClientSocket.h x: 13 commits (all time) y: 72 lines of code util/CommonImpl.cpp x: 7 commits (all time) y: 75 lines of code util/CommonImpl.h x: 5 commits (all time) y: 91 lines of code util/DirectorySourceQueue.cpp x: 25 commits (all time) y: 600 lines of code util/DirectorySourceQueue.h x: 21 commits (all time) y: 139 lines of code util/EncryptionUtils.cpp x: 16 commits (all time) y: 436 lines of code util/EncryptionUtils.h x: 13 commits (all time) y: 85 lines of code util/FileByteSource.cpp x: 12 commits (all time) y: 176 lines of code util/FileByteSource.h x: 8 commits (all time) y: 58 lines of code util/FileCreator.h x: 9 commits (all time) y: 67 lines of code util/FileWriter.cpp x: 13 commits (all time) y: 173 lines of code util/FileWriter.h x: 6 commits (all time) y: 41 lines of code util/IClientSocket.h x: 2 commits (all time) y: 30 lines of code util/SerializationUtil.cpp x: 10 commits (all time) y: 161 lines of code util/SerializationUtil.h x: 7 commits (all time) y: 128 lines of code util/ServerSocket.h x: 11 commits (all time) y: 82 lines of code util/Stats.h x: 6 commits (all time) y: 270 lines of code util/ThreadTransferHistory.cpp x: 7 commits (all time) y: 244 lines of code util/ThreadTransferHistory.h x: 3 commits (all time) y: 59 lines of code util/ThreadsController.cpp x: 8 commits (all time) y: 232 lines of code util/ThreadsController.h x: 9 commits (all time) y: 156 lines of code util/TransferLogManager.cpp x: 20 commits (all time) y: 991 lines of code util/TransferLogManager.h x: 13 commits (all time) y: 143 lines of code util/WdtFlags.cpp.inc x: 18 commits (all time) y: 159 lines of code util/WdtFlags.h x: 4 commits (all time) y: 16 lines of code wdtCmdLine.cpp x: 86 commits (all time) y: 316 lines of code CMakeLists.txt.in x: 1 commits (all time) y: 13 lines of code Wdt.cpp x: 22 commits (all time) y: 201 lines of code util/WdtSocket.cpp x: 16 commits (all time) y: 734 lines of code util/WdtSocket.h x: 13 commits (all time) y: 108 lines of code build/wdt_cont_build_run.tcl x: 22 commits (all time) y: 214 lines of code build/fbpkg.tcl x: 1 commits (all time) y: 64 lines of code util/WdtFlagsMacros.h x: 4 commits (all time) y: 43 lines of code build/auto_version.tcl x: 6 commits (all time) y: 63 lines of code build/wdt_cont_build_run_diff.tcl x: 4 commits (all time) y: 163 lines of code build/version_update.tcl x: 1 commits (all time) y: 71 lines of code
991.0
lines of code
  min: 1.0
  average: 189.88
  25th percentile: 58.5
  median: 95.0
  75th percentile: 240.5
  max: 991.0
0 116.0
commits (all time)
min: 1.0 | average: 19.75 | 25th percentile: 6.0 | median: 12.0 | 75th percentile: 22.5 | max: 116.0

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

Sender.h x: 12 contributors (all time) y: 83 lines of code bench/Bigram.cpp x: 3 contributors (all time) y: 75 lines of code bench/wdtGenFiles.cpp x: 5 contributors (all time) y: 346 lines of code bench/wdtGenTest.cpp x: 4 contributors (all time) y: 53 lines of code bench/wdtStats.cpp x: 4 contributors (all time) y: 56 lines of code util/Stats.cpp x: 4 contributors (all time) y: 226 lines of code util/WdtFlags.cpp x: 6 contributors (all time) y: 50 lines of code build/folly-config.h.in x: 4 contributors (all time) y: 12 lines of code util/FileCreator.cpp x: 8 contributors (all time) y: 302 lines of code util/ServerSocket.cpp x: 6 contributors (all time) y: 283 lines of code Receiver.cpp x: 15 contributors (all time) y: 477 lines of code Receiver.h x: 11 contributors (all time) y: 72 lines of code AbortChecker.h x: 5 contributors (all time) y: 23 lines of code ByteSource.h x: 7 contributors (all time) y: 40 lines of code ErrorCodes.cpp x: 5 contributors (all time) y: 32 lines of code ErrorCodes.h x: 7 contributors (all time) y: 86 lines of code Protocol.cpp x: 6 contributors (all time) y: 500 lines of code Protocol.h x: 7 contributors (all time) y: 249 lines of code ReceiverThread.cpp x: 11 contributors (all time) y: 923 lines of code ReceiverThread.h x: 6 contributors (all time) y: 80 lines of code Reporting.cpp x: 11 contributors (all time) y: 443 lines of code Reporting.h x: 8 contributors (all time) y: 356 lines of code Sender.cpp x: 13 contributors (all time) y: 417 lines of code SenderThread.cpp x: 10 contributors (all time) y: 925 lines of code SenderThread.h x: 7 contributors (all time) y: 107 lines of code SourceQueue.h x: 5 contributors (all time) y: 17 lines of code Throttler.cpp x: 7 contributors (all time) y: 237 lines of code Throttler.h x: 6 contributors (all time) y: 65 lines of code Wdt.h x: 8 contributors (all time) y: 62 lines of code WdtBase.cpp x: 6 contributors (all time) y: 161 lines of code WdtBase.h x: 9 contributors (all time) y: 87 lines of code WdtConfig.h.in x: 4 contributors (all time) y: 22 lines of code WdtOptions.cpp x: 4 contributors (all time) y: 72 lines of code WdtOptions.h x: 9 contributors (all time) y: 95 lines of code WdtResourceController.cpp x: 7 contributors (all time) y: 638 lines of code WdtResourceController.h x: 8 contributors (all time) y: 123 lines of code WdtThread.cpp x: 5 contributors (all time) y: 42 lines of code WdtThread.h x: 5 contributors (all time) y: 63 lines of code WdtTransferRequest.cpp x: 7 contributors (all time) y: 448 lines of code Writer.h x: 4 contributors (all time) y: 16 lines of code bench/Bigram.h x: 2 contributors (all time) y: 38 lines of code bench/WdtGenTestUtils.cpp x: 2 contributors (all time) y: 1 lines of code util/ClientSocket.cpp x: 7 contributors (all time) y: 169 lines of code util/ClientSocket.h x: 5 contributors (all time) y: 72 lines of code util/CommonImpl.cpp x: 5 contributors (all time) y: 75 lines of code util/CommonImpl.h x: 5 contributors (all time) y: 91 lines of code util/DirectorySourceQueue.cpp x: 8 contributors (all time) y: 600 lines of code util/DirectorySourceQueue.h x: 7 contributors (all time) y: 139 lines of code util/EncryptionUtils.cpp x: 7 contributors (all time) y: 436 lines of code util/EncryptionUtils.h x: 5 contributors (all time) y: 85 lines of code util/FileByteSource.cpp x: 5 contributors (all time) y: 176 lines of code util/FileByteSource.h x: 5 contributors (all time) y: 58 lines of code util/FileCreator.h x: 6 contributors (all time) y: 67 lines of code util/FileWriter.cpp x: 6 contributors (all time) y: 173 lines of code util/IClientSocket.h x: 2 contributors (all time) y: 30 lines of code util/SerializationUtil.cpp x: 4 contributors (all time) y: 161 lines of code util/SerializationUtil.h x: 3 contributors (all time) y: 128 lines of code util/Stats.h x: 5 contributors (all time) y: 270 lines of code util/ThreadTransferHistory.cpp x: 4 contributors (all time) y: 244 lines of code util/ThreadTransferHistory.h x: 2 contributors (all time) y: 59 lines of code util/ThreadsController.cpp x: 5 contributors (all time) y: 232 lines of code util/ThreadsController.h x: 4 contributors (all time) y: 156 lines of code util/TransferLogManager.cpp x: 7 contributors (all time) y: 991 lines of code util/TransferLogManager.h x: 5 contributors (all time) y: 143 lines of code util/WdtFlags.cpp.inc x: 6 contributors (all time) y: 159 lines of code util/WdtFlags.h x: 3 contributors (all time) y: 16 lines of code wdtCmdLine.cpp x: 11 contributors (all time) y: 316 lines of code CMakeLists.txt.in x: 1 contributors (all time) y: 13 lines of code Wdt.cpp x: 5 contributors (all time) y: 201 lines of code util/WdtSocket.cpp x: 5 contributors (all time) y: 734 lines of code util/WdtSocket.h x: 4 contributors (all time) y: 108 lines of code build/wdt_cont_build_run.tcl x: 2 contributors (all time) y: 214 lines of code build/fbpkg.tcl x: 1 contributors (all time) y: 64 lines of code util/WdtFlagsMacros.h x: 3 contributors (all time) y: 43 lines of code build/auto_version.tcl x: 2 contributors (all time) y: 63 lines of code build/wdt_cont_build_run_diff.tcl x: 1 contributors (all time) y: 163 lines of code build/version_update.tcl x: 1 contributors (all time) y: 71 lines of code
991.0
lines of code
  min: 1.0
  average: 189.88
  25th percentile: 58.5
  median: 95.0
  75th percentile: 240.5
  max: 991.0
0 15.0
contributors (all time)
min: 1.0 | average: 5.69 | 25th percentile: 4.0 | median: 5.0 | 75th percentile: 7.0 | max: 15.0

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

Sender.h x: 1 commits (30d) y: 83 lines of code
83.0
lines of code
  min: 83.0
  average: 83.0
  25th percentile: 83.0
  median: 83.0
  75th percentile: 83.0
  max: 83.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): 1 points

Sender.h x: 1 contributors (30d) y: 83 lines of code
83.0
lines of code
  min: 83.0
  average: 83.0
  25th percentile: 83.0
  median: 83.0
  75th percentile: 83.0
  max: 83.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): 7 points

Sender.h x: 1 commits (90d) y: 83 lines of code bench/Bigram.cpp x: 1 commits (90d) y: 75 lines of code bench/wdtGenFiles.cpp x: 1 commits (90d) y: 346 lines of code bench/wdtGenTest.cpp x: 1 commits (90d) y: 53 lines of code bench/wdtStats.cpp x: 1 commits (90d) y: 56 lines of code util/Stats.cpp x: 1 commits (90d) y: 226 lines of code util/WdtFlags.cpp x: 1 commits (90d) y: 50 lines of code
346.0
lines of code
  min: 50.0
  average: 127.0
  25th percentile: 53.0
  median: 75.0
  75th percentile: 226.0
  max: 346.0
0 1.0
commits (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

Sender.h x: 1 contributors (90d) y: 83 lines of code bench/Bigram.cpp x: 1 contributors (90d) y: 75 lines of code bench/wdtGenFiles.cpp x: 1 contributors (90d) y: 346 lines of code bench/wdtGenTest.cpp x: 1 contributors (90d) y: 53 lines of code bench/wdtStats.cpp x: 1 contributors (90d) y: 56 lines of code util/Stats.cpp x: 1 contributors (90d) y: 226 lines of code util/WdtFlags.cpp x: 1 contributors (90d) y: 50 lines of code
346.0
lines of code
  min: 50.0
  average: 127.0
  25th percentile: 53.0
  median: 75.0
  75th percentile: 226.0
  max: 346.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0