facebook / squangle
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 41 files with 9,394 lines of code.
    • 1 very long files (1,537 lines of code)
    • 4 long files (2,901 lines of code)
    • 10 medium size files (3,309 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (756 lines of code)
    • 21 very small files (891 lines of code)
16% | 30% | 35% | 8% | 9%
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
cpp30% | 26% | 29% | 2% | 9%
h0% | 35% | 41% | 13% | 9%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
mysql_client17% | 33% | 37% | 4% | 7%
logger0% | 0% | 0% | 76% | 23%
base0% | 0% | 0% | 0% | 100%
Longest Files (Top 41)
File# lines# units
Operation.cpp
in squangle/mysql_client
1537 92
Operation.h
in squangle/mysql_client
988 54
AsyncConnectionPool.cpp
in squangle/mysql_client
816 43
AsyncConnectionPool.h
in squangle/mysql_client
574 44
Query.cpp
in squangle/mysql_client
523 35
DbResult.h
in squangle/mysql_client
438 38
Connection.h
in squangle/mysql_client
425 37
Query.h
in squangle/mysql_client
365 18
Connection.cpp
in squangle/mysql_client
364 33
DbResult.cpp
in squangle/mysql_client
362 27
Row.h
in squangle/mysql_client
356 47
AsyncMysqlClient.h
in squangle/mysql_client
260 20
AsyncMysqlClient.cpp
in squangle/mysql_client
252 19
QueryBenchmark.cpp
in squangle/mysql_client
245 11
Row.cpp
in squangle/mysql_client
242 18
DBEventCounter.h
in squangle/logger
187 28
DBEventLogger.h
in squangle/logger
182 5
FutureAdapter.cpp
in squangle/mysql_client
147 14
SyncMysqlClient.h
in squangle/mysql_client
131 21
MysqlClientBase.h
in squangle/mysql_client
109 5
MysqlConnectionHolder.h
in squangle/mysql_client
98 12
MysqlClientBase.cpp
in squangle/mysql_client
91 6
DBEventCounter.cpp
in squangle/logger
75 5
ClientPool.h
in squangle/mysql_client
66 7
Compression.cpp
in squangle/mysql_client
57 3
MysqlConnectionHolder.cpp
in squangle/mysql_client
55 2
ConnectionKey.cpp
in squangle/base
52 2
OperationBatch.cpp
in squangle/mysql_client
44 4
ConnectionKey.h
in squangle/base
43 1
DBEventLogger.cpp
in squangle/logger
37 4
OperationBatch.h
in squangle/mysql_client
37 1
MysqlHandler.h
in squangle/mysql_client
34 -
SSLOptionsProviderBase.cpp
in squangle/mysql_client
34 2
AsyncHelpers.cpp
in squangle/mysql_client
30 2
FutureAdapter.h
in squangle/mysql_client
28 -
SSLOptionsProviderBase.h
in squangle/mysql_client
27 1
ExceptionUtil.h
in squangle/base
27 -
AsyncHelpers.h
in squangle/mysql_client
19 -
Compression.h
in squangle/mysql_client
19 -
SyncMysqlClient.cpp
in squangle/mysql_client
12 1
Base.h
in squangle/base
6 -
Files With Most Units (Top 35)
File# lines# units
Operation.cpp
in squangle/mysql_client
1537 92
Operation.h
in squangle/mysql_client
988 54
Row.h
in squangle/mysql_client
356 47
AsyncConnectionPool.h
in squangle/mysql_client
574 44
AsyncConnectionPool.cpp
in squangle/mysql_client
816 43
DbResult.h
in squangle/mysql_client
438 38
Connection.h
in squangle/mysql_client
425 37
Query.cpp
in squangle/mysql_client
523 35
Connection.cpp
in squangle/mysql_client
364 33
DBEventCounter.h
in squangle/logger
187 28
DbResult.cpp
in squangle/mysql_client
362 27
SyncMysqlClient.h
in squangle/mysql_client
131 21
AsyncMysqlClient.h
in squangle/mysql_client
260 20
AsyncMysqlClient.cpp
in squangle/mysql_client
252 19
Query.h
in squangle/mysql_client
365 18
Row.cpp
in squangle/mysql_client
242 18
FutureAdapter.cpp
in squangle/mysql_client
147 14
MysqlConnectionHolder.h
in squangle/mysql_client
98 12
QueryBenchmark.cpp
in squangle/mysql_client
245 11
ClientPool.h
in squangle/mysql_client
66 7
MysqlClientBase.cpp
in squangle/mysql_client
91 6
DBEventLogger.h
in squangle/logger
182 5
DBEventCounter.cpp
in squangle/logger
75 5
MysqlClientBase.h
in squangle/mysql_client
109 5
DBEventLogger.cpp
in squangle/logger
37 4
OperationBatch.cpp
in squangle/mysql_client
44 4
Compression.cpp
in squangle/mysql_client
57 3
MysqlConnectionHolder.cpp
in squangle/mysql_client
55 2
SSLOptionsProviderBase.cpp
in squangle/mysql_client
34 2
AsyncHelpers.cpp
in squangle/mysql_client
30 2
ConnectionKey.cpp
in squangle/base
52 2
SSLOptionsProviderBase.h
in squangle/mysql_client
27 1
SyncMysqlClient.cpp
in squangle/mysql_client
12 1
OperationBatch.h
in squangle/mysql_client
37 1
ConnectionKey.h
in squangle/base
43 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): 41 points

squangle/mysql_client/Operation.cpp x: 139 commits (all time) y: 1537 lines of code squangle/mysql_client/AsyncConnectionPool.h x: 44 commits (all time) y: 574 lines of code squangle/logger/DBEventCounter.cpp x: 7 commits (all time) y: 75 lines of code squangle/logger/DBEventCounter.h x: 14 commits (all time) y: 187 lines of code squangle/mysql_client/Query.h x: 35 commits (all time) y: 365 lines of code squangle/mysql_client/SSLOptionsProviderBase.h x: 14 commits (all time) y: 27 lines of code squangle/mysql_client/AsyncConnectionPool.cpp x: 53 commits (all time) y: 816 lines of code squangle/mysql_client/AsyncMysqlClient.cpp x: 91 commits (all time) y: 252 lines of code squangle/mysql_client/MysqlClientBase.cpp x: 3 commits (all time) y: 91 lines of code squangle/mysql_client/MysqlClientBase.h x: 4 commits (all time) y: 109 lines of code squangle/mysql_client/SyncMysqlClient.cpp x: 3 commits (all time) y: 12 lines of code squangle/mysql_client/SyncMysqlClient.h x: 6 commits (all time) y: 131 lines of code squangle/mysql_client/Row.h x: 33 commits (all time) y: 356 lines of code squangle/mysql_client/AsyncMysqlClient.h x: 85 commits (all time) y: 260 lines of code squangle/mysql_client/Connection.cpp x: 21 commits (all time) y: 364 lines of code squangle/mysql_client/Connection.h x: 23 commits (all time) y: 425 lines of code squangle/mysql_client/MysqlConnectionHolder.cpp x: 3 commits (all time) y: 55 lines of code squangle/mysql_client/MysqlConnectionHolder.h x: 3 commits (all time) y: 98 lines of code squangle/mysql_client/Operation.h x: 105 commits (all time) y: 988 lines of code squangle/mysql_client/FutureAdapter.cpp x: 13 commits (all time) y: 147 lines of code squangle/base/Base.h x: 2 commits (all time) y: 6 lines of code squangle/base/ConnectionKey.cpp x: 8 commits (all time) y: 52 lines of code squangle/base/ConnectionKey.h x: 7 commits (all time) y: 43 lines of code squangle/base/ExceptionUtil.h x: 8 commits (all time) y: 27 lines of code squangle/logger/DBEventLogger.cpp x: 20 commits (all time) y: 37 lines of code squangle/logger/DBEventLogger.h x: 30 commits (all time) y: 182 lines of code squangle/mysql_client/AsyncHelpers.h x: 7 commits (all time) y: 19 lines of code squangle/mysql_client/ClientPool.h x: 9 commits (all time) y: 66 lines of code squangle/mysql_client/Compression.cpp x: 4 commits (all time) y: 57 lines of code squangle/mysql_client/Compression.h x: 4 commits (all time) y: 19 lines of code squangle/mysql_client/DbResult.cpp x: 29 commits (all time) y: 362 lines of code squangle/mysql_client/DbResult.h x: 26 commits (all time) y: 438 lines of code squangle/mysql_client/FutureAdapter.h x: 7 commits (all time) y: 28 lines of code squangle/mysql_client/MysqlHandler.h x: 2 commits (all time) y: 34 lines of code squangle/mysql_client/OperationBatch.cpp x: 8 commits (all time) y: 44 lines of code squangle/mysql_client/OperationBatch.h x: 6 commits (all time) y: 37 lines of code squangle/mysql_client/Query.cpp x: 27 commits (all time) y: 523 lines of code squangle/mysql_client/QueryBenchmark.cpp x: 12 commits (all time) y: 245 lines of code squangle/mysql_client/Row.cpp x: 12 commits (all time) y: 242 lines of code squangle/mysql_client/SSLOptionsProviderBase.cpp x: 9 commits (all time) y: 34 lines of code
1537.0
lines of code
  min: 6.0
  average: 229.12
  25th percentile: 35.5
  median: 98.0
  75th percentile: 359.0
  max: 1537.0
0 139.0
commits (all time)
min: 2.0 | average: 23.02 | 25th percentile: 6.0 | median: 9.0 | 75th percentile: 28.0 | max: 139.0

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

squangle/mysql_client/Operation.cpp x: 35 contributors (all time) y: 1537 lines of code squangle/mysql_client/AsyncConnectionPool.h x: 22 contributors (all time) y: 574 lines of code squangle/logger/DBEventCounter.cpp x: 5 contributors (all time) y: 75 lines of code squangle/logger/DBEventCounter.h x: 9 contributors (all time) y: 187 lines of code squangle/mysql_client/Query.h x: 22 contributors (all time) y: 365 lines of code squangle/mysql_client/SSLOptionsProviderBase.h x: 7 contributors (all time) y: 27 lines of code squangle/mysql_client/AsyncConnectionPool.cpp x: 24 contributors (all time) y: 816 lines of code squangle/mysql_client/AsyncMysqlClient.cpp x: 31 contributors (all time) y: 252 lines of code squangle/mysql_client/MysqlClientBase.cpp x: 1 contributors (all time) y: 91 lines of code squangle/mysql_client/MysqlClientBase.h x: 1 contributors (all time) y: 109 lines of code squangle/mysql_client/SyncMysqlClient.cpp x: 1 contributors (all time) y: 12 lines of code squangle/mysql_client/SyncMysqlClient.h x: 1 contributors (all time) y: 131 lines of code squangle/mysql_client/Row.h x: 16 contributors (all time) y: 356 lines of code squangle/mysql_client/AsyncMysqlClient.h x: 28 contributors (all time) y: 260 lines of code squangle/mysql_client/Connection.cpp x: 11 contributors (all time) y: 364 lines of code squangle/mysql_client/Connection.h x: 11 contributors (all time) y: 425 lines of code squangle/mysql_client/MysqlConnectionHolder.cpp x: 2 contributors (all time) y: 55 lines of code squangle/mysql_client/MysqlConnectionHolder.h x: 2 contributors (all time) y: 98 lines of code squangle/mysql_client/Operation.h x: 26 contributors (all time) y: 988 lines of code squangle/mysql_client/FutureAdapter.cpp x: 10 contributors (all time) y: 147 lines of code squangle/base/Base.h x: 1 contributors (all time) y: 6 lines of code squangle/base/ConnectionKey.cpp x: 5 contributors (all time) y: 52 lines of code squangle/base/ConnectionKey.h x: 5 contributors (all time) y: 43 lines of code squangle/base/ExceptionUtil.h x: 5 contributors (all time) y: 27 lines of code squangle/logger/DBEventLogger.cpp x: 10 contributors (all time) y: 37 lines of code squangle/logger/DBEventLogger.h x: 12 contributors (all time) y: 182 lines of code squangle/mysql_client/AsyncHelpers.h x: 5 contributors (all time) y: 19 lines of code squangle/mysql_client/ClientPool.h x: 7 contributors (all time) y: 66 lines of code squangle/mysql_client/Compression.h x: 1 contributors (all time) y: 19 lines of code squangle/mysql_client/DbResult.cpp x: 10 contributors (all time) y: 362 lines of code squangle/mysql_client/DbResult.h x: 13 contributors (all time) y: 438 lines of code squangle/mysql_client/FutureAdapter.h x: 6 contributors (all time) y: 28 lines of code squangle/mysql_client/MysqlHandler.h x: 2 contributors (all time) y: 34 lines of code squangle/mysql_client/OperationBatch.cpp x: 6 contributors (all time) y: 44 lines of code squangle/mysql_client/OperationBatch.h x: 5 contributors (all time) y: 37 lines of code squangle/mysql_client/Query.cpp x: 19 contributors (all time) y: 523 lines of code squangle/mysql_client/QueryBenchmark.cpp x: 10 contributors (all time) y: 245 lines of code squangle/mysql_client/Row.cpp x: 9 contributors (all time) y: 242 lines of code squangle/mysql_client/SSLOptionsProviderBase.cpp x: 5 contributors (all time) y: 34 lines of code
1537.0
lines of code
  min: 6.0
  average: 229.12
  25th percentile: 35.5
  median: 98.0
  75th percentile: 359.0
  max: 1537.0
0 35.0
contributors (all time)
min: 1.0 | average: 9.95 | 25th percentile: 3.5 | median: 7.0 | 75th percentile: 12.5 | max: 35.0

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

squangle/mysql_client/Operation.cpp x: 2 commits (30d) y: 1537 lines of code squangle/mysql_client/AsyncConnectionPool.h x: 2 commits (30d) y: 574 lines of code squangle/logger/DBEventCounter.cpp x: 1 commits (30d) y: 75 lines of code squangle/logger/DBEventCounter.h x: 1 commits (30d) y: 187 lines of code squangle/mysql_client/Query.h x: 1 commits (30d) y: 365 lines of code squangle/mysql_client/SSLOptionsProviderBase.h x: 1 commits (30d) y: 27 lines of code squangle/mysql_client/AsyncConnectionPool.cpp x: 1 commits (30d) y: 816 lines of code
1537.0
lines of code
  min: 27.0
  average: 511.57
  25th percentile: 75.0
  median: 365.0
  75th percentile: 816.0
  max: 1537.0
0 2.0
commits (30d)
min: 1.0 | average: 1.29 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 2.0

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

squangle/mysql_client/Operation.cpp x: 2 contributors (30d) y: 1537 lines of code squangle/mysql_client/AsyncConnectionPool.h x: 1 contributors (30d) y: 574 lines of code squangle/logger/DBEventCounter.cpp x: 1 contributors (30d) y: 75 lines of code squangle/logger/DBEventCounter.h x: 1 contributors (30d) y: 187 lines of code squangle/mysql_client/Query.h x: 1 contributors (30d) y: 365 lines of code squangle/mysql_client/SSLOptionsProviderBase.h x: 1 contributors (30d) y: 27 lines of code squangle/mysql_client/AsyncConnectionPool.cpp x: 1 contributors (30d) y: 816 lines of code
1537.0
lines of code
  min: 27.0
  average: 511.57
  25th percentile: 75.0
  median: 365.0
  75th percentile: 816.0
  max: 1537.0
0 2.0
contributors (30d)
min: 1.0 | average: 1.14 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

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

squangle/mysql_client/Operation.cpp x: 6 commits (90d) y: 1537 lines of code squangle/mysql_client/AsyncConnectionPool.h x: 5 commits (90d) y: 574 lines of code squangle/logger/DBEventCounter.cpp x: 2 commits (90d) y: 75 lines of code squangle/logger/DBEventCounter.h x: 2 commits (90d) y: 187 lines of code squangle/mysql_client/Query.h x: 3 commits (90d) y: 365 lines of code squangle/mysql_client/SSLOptionsProviderBase.h x: 2 commits (90d) y: 27 lines of code squangle/mysql_client/AsyncConnectionPool.cpp x: 4 commits (90d) y: 816 lines of code squangle/mysql_client/AsyncMysqlClient.cpp x: 7 commits (90d) y: 252 lines of code squangle/mysql_client/MysqlClientBase.cpp x: 3 commits (90d) y: 91 lines of code squangle/mysql_client/MysqlClientBase.h x: 4 commits (90d) y: 109 lines of code squangle/mysql_client/SyncMysqlClient.cpp x: 3 commits (90d) y: 12 lines of code squangle/mysql_client/SyncMysqlClient.h x: 6 commits (90d) y: 131 lines of code squangle/mysql_client/Row.h x: 4 commits (90d) y: 356 lines of code squangle/mysql_client/AsyncMysqlClient.h x: 7 commits (90d) y: 260 lines of code squangle/mysql_client/Connection.cpp x: 4 commits (90d) y: 364 lines of code squangle/mysql_client/Connection.h x: 5 commits (90d) y: 425 lines of code squangle/mysql_client/MysqlConnectionHolder.cpp x: 3 commits (90d) y: 55 lines of code squangle/mysql_client/MysqlConnectionHolder.h x: 3 commits (90d) y: 98 lines of code squangle/mysql_client/Operation.h x: 6 commits (90d) y: 988 lines of code squangle/mysql_client/FutureAdapter.cpp x: 3 commits (90d) y: 147 lines of code squangle/base/Base.h x: 2 commits (90d) y: 6 lines of code squangle/base/ConnectionKey.cpp x: 1 commits (90d) y: 52 lines of code squangle/base/ConnectionKey.h x: 1 commits (90d) y: 43 lines of code squangle/logger/DBEventLogger.cpp x: 1 commits (90d) y: 37 lines of code squangle/mysql_client/AsyncHelpers.cpp x: 1 commits (90d) y: 30 lines of code squangle/mysql_client/AsyncHelpers.h x: 1 commits (90d) y: 19 lines of code squangle/mysql_client/ClientPool.h x: 1 commits (90d) y: 66 lines of code squangle/mysql_client/Compression.cpp x: 1 commits (90d) y: 57 lines of code squangle/mysql_client/DbResult.cpp x: 1 commits (90d) y: 362 lines of code squangle/mysql_client/DbResult.h x: 2 commits (90d) y: 438 lines of code squangle/mysql_client/MysqlHandler.h x: 1 commits (90d) y: 34 lines of code squangle/mysql_client/Query.cpp x: 1 commits (90d) y: 523 lines of code squangle/mysql_client/QueryBenchmark.cpp x: 1 commits (90d) y: 245 lines of code squangle/mysql_client/Row.cpp x: 1 commits (90d) y: 242 lines of code
1537.0
lines of code
  min: 6.0
  average: 229.12
  25th percentile: 35.5
  median: 98.0
  75th percentile: 359.0
  max: 1537.0
0 7.0
commits (90d)
min: 1.0 | average: 2.63 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 4.0 | max: 7.0

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

squangle/mysql_client/Operation.cpp x: 5 contributors (90d) y: 1537 lines of code squangle/mysql_client/AsyncConnectionPool.h x: 2 contributors (90d) y: 574 lines of code squangle/logger/DBEventCounter.cpp x: 2 contributors (90d) y: 75 lines of code squangle/logger/DBEventCounter.h x: 2 contributors (90d) y: 187 lines of code squangle/mysql_client/Query.h x: 3 contributors (90d) y: 365 lines of code squangle/mysql_client/SSLOptionsProviderBase.h x: 2 contributors (90d) y: 27 lines of code squangle/mysql_client/AsyncConnectionPool.cpp x: 2 contributors (90d) y: 816 lines of code squangle/mysql_client/AsyncMysqlClient.cpp x: 2 contributors (90d) y: 252 lines of code squangle/mysql_client/MysqlClientBase.cpp x: 1 contributors (90d) y: 91 lines of code squangle/mysql_client/MysqlClientBase.h x: 1 contributors (90d) y: 109 lines of code squangle/mysql_client/SyncMysqlClient.cpp x: 1 contributors (90d) y: 12 lines of code squangle/mysql_client/SyncMysqlClient.h x: 1 contributors (90d) y: 131 lines of code squangle/mysql_client/Row.h x: 1 contributors (90d) y: 356 lines of code squangle/mysql_client/AsyncMysqlClient.h x: 1 contributors (90d) y: 260 lines of code squangle/mysql_client/Connection.cpp x: 2 contributors (90d) y: 364 lines of code squangle/mysql_client/Connection.h x: 3 contributors (90d) y: 425 lines of code squangle/mysql_client/MysqlConnectionHolder.cpp x: 2 contributors (90d) y: 55 lines of code squangle/mysql_client/MysqlConnectionHolder.h x: 2 contributors (90d) y: 98 lines of code squangle/mysql_client/Operation.h x: 2 contributors (90d) y: 988 lines of code squangle/mysql_client/FutureAdapter.cpp x: 1 contributors (90d) y: 147 lines of code squangle/base/Base.h x: 1 contributors (90d) y: 6 lines of code squangle/base/ConnectionKey.cpp x: 1 contributors (90d) y: 52 lines of code squangle/base/ConnectionKey.h x: 1 contributors (90d) y: 43 lines of code squangle/base/ExceptionUtil.h x: 1 contributors (90d) y: 27 lines of code squangle/logger/DBEventLogger.cpp x: 1 contributors (90d) y: 37 lines of code squangle/logger/DBEventLogger.h x: 1 contributors (90d) y: 182 lines of code squangle/mysql_client/AsyncHelpers.h x: 1 contributors (90d) y: 19 lines of code squangle/mysql_client/ClientPool.h x: 1 contributors (90d) y: 66 lines of code squangle/mysql_client/Compression.cpp x: 1 contributors (90d) y: 57 lines of code squangle/mysql_client/DbResult.cpp x: 1 contributors (90d) y: 362 lines of code squangle/mysql_client/DbResult.h x: 1 contributors (90d) y: 438 lines of code squangle/mysql_client/MysqlHandler.h x: 1 contributors (90d) y: 34 lines of code squangle/mysql_client/Query.cpp x: 1 contributors (90d) y: 523 lines of code squangle/mysql_client/QueryBenchmark.cpp x: 1 contributors (90d) y: 245 lines of code squangle/mysql_client/Row.cpp x: 1 contributors (90d) y: 242 lines of code
1537.0
lines of code
  min: 6.0
  average: 229.12
  25th percentile: 35.5
  median: 98.0
  75th percentile: 359.0
  max: 1537.0
0 5.0
contributors (90d)
min: 1.0 | average: 1.44 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 5.0