facebookincubator / SocketRocket
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 52 files with 2,844 lines of code.
    • 1 very long files (1,219 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (378 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (124 lines of code)
    • 49 very small files (1,123 lines of code)
42% | 0% | 13% | 4% | 39%
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
m51% | 0% | 15% | 5% | 27%
h0% | 0% | 0% | 0% | 100%
go0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
SocketRocket85% | 0% | 0% | 0% | 14%
SocketRocket/Internal/Proxy0% | 0% | 97% | 0% | 2%
TestChat0% | 0% | 0% | 70% | 29%
SocketRocket/Internal/Utilities0% | 0% | 0% | 0% | 100%
SocketRocket/Internal/Delegate0% | 0% | 0% | 0% | 100%
SocketRocket/Internal/IOConsumer0% | 0% | 0% | 0% | 100%
TestChatServer/static0% | 0% | 0% | 0% | 100%
SocketRocket/Internal/RunLoop0% | 0% | 0% | 0% | 100%
TestChatServer/go0% | 0% | 0% | 0% | 100%
SocketRocket/Internal/Security0% | 0% | 0% | 0% | 100%
TestChatServer/py0% | 0% | 0% | 0% | 100%
SocketRocket/Internal0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
SRWebSocket.m
in SocketRocket
1219 3
SRProxyConnect.m
in SocketRocket/Internal/Proxy
378 -
124 -
SRDelegateController.m
in SocketRocket/Internal/Delegate
99 -
SRWebSocket.h
in SocketRocket
86 2
SRURLUtilities.m
in SocketRocket/Internal/Utilities
62 1
SRRunLoopThread.m
in SocketRocket/Internal/RunLoop
59 -
chatroom.go
in TestChatServer/go
52 3
SRHTTPConnectMessage.m
in SocketRocket/Internal/Utilities
51 1
chatroom.py
in TestChatServer/py
49 5
SRPinningSecurityPolicy.m
in SocketRocket/Internal/Security
45 -
SRIOConsumerPool.m
in SocketRocket/Internal/IOConsumer
45 -
SRSecurityPolicy.m
in SocketRocket
44 -
SRDelegateController.h
in SocketRocket/Internal/Delegate
40 -
proxy.js
in TestChatServer/static
38 6
SRSIMDHelpers.m
in SocketRocket/Internal/Utilities
38 3
index.html
in TestChatServer/static
35 -
SRMutex.m
in SocketRocket/Internal/Utilities
29 4
SRHash.m
in SocketRocket/Internal/Utilities
26 -
SRError.m
in SocketRocket/Internal/Utilities
26 -
SRIOConsumer.h
in SocketRocket/Internal/IOConsumer
22 -
TCChatCell.m
in TestChat
22 -
SRIOConsumer.m
in SocketRocket/Internal/IOConsumer
21 -
20 1
SRLog.m
in SocketRocket/Internal/Utilities
17 2
SRSecurityPolicy.h
in SocketRocket
16 -
SRRandom.m
in SocketRocket/Internal/Utilities
13 -
13 -
SRIOConsumerPool.h
in SocketRocket/Internal/IOConsumer
11 -
10 1
SRConstants.h
in SocketRocket/Internal
10 1
SRProxyConnect.h
in SocketRocket/Internal/Proxy
10 -
SRConstants.m
in SocketRocket/Internal
9 1
SRMutex.h
in SocketRocket/Internal/Utilities
8 -
SRHTTPConnectMessage.h
in SocketRocket/Internal/Utilities
8 -
main.m
in TestChat
8 1
SRRunLoopThread.h
in SocketRocket/Internal/RunLoop
7 -
SRPinningSecurityPolicy.h
in SocketRocket/Internal/Security
7 -
SRError.h
in SocketRocket/Internal/Utilities
7 -
SRURLUtilities.h
in SocketRocket/Internal/Utilities
7 -
TCAppDelegate.m
in TestChat
7 -
SRHash.h
in SocketRocket/Internal/Utilities
6 -
6 -
6 -
SRLog.h
in SocketRocket/Internal/Utilities
5 -
TCChatCell.h
in TestChat
5 -
SocketRocket.h
in SocketRocket
4 -
SRRandom.h
in SocketRocket/Internal/Utilities
4 -
TCAppDelegate.h
in TestChat
4 -
NSRunLoop+SRWebSocketPrivate.h
in SocketRocket/Internal
2 -
Files With Most Units (Top 15)
File# lines# units
proxy.js
in TestChatServer/static
38 6
chatroom.py
in TestChatServer/py
49 5
SRMutex.m
in SocketRocket/Internal/Utilities
29 4
chatroom.go
in TestChatServer/go
52 3
SRWebSocket.m
in SocketRocket
1219 3
SRSIMDHelpers.m
in SocketRocket/Internal/Utilities
38 3
SRLog.m
in SocketRocket/Internal/Utilities
17 2
SRWebSocket.h
in SocketRocket
86 2
10 1
SRConstants.h
in SocketRocket/Internal
10 1
SRHTTPConnectMessage.m
in SocketRocket/Internal/Utilities
51 1
SRURLUtilities.m
in SocketRocket/Internal/Utilities
62 1
SRConstants.m
in SocketRocket/Internal
9 1
20 1
main.m
in TestChat
8 1
Files With Long Lines (Top 12)

There are 12 files with lines longer than 120 characters. In total, there are 71 long lines.

File# lines# units# long lines
SRWebSocket.m
in SocketRocket
1219 3 43
SRProxyConnect.m
in SocketRocket/Internal/Proxy
378 - 6
SRWebSocket.h
in SocketRocket
86 2 6
SRHTTPConnectMessage.m
in SocketRocket/Internal/Utilities
51 1 4
chatroom.py
in TestChatServer/py
49 5 2
SRSecurityPolicy.m
in SocketRocket
44 - 2
SRDelegateController.m
in SocketRocket/Internal/Delegate
99 - 2
124 - 2
proxy.js
in TestChatServer/static
38 6 1
SRURLUtilities.m
in SocketRocket/Internal/Utilities
62 1 1
SRError.h
in SocketRocket/Internal/Utilities
7 - 1
SRRandom.m
in SocketRocket/Internal/Utilities
13 - 1
Correlations

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

SocketRocket/Internal/Utilities/SRURLUtilities.m x: 9 commits (all time) y: 62 lines of code SocketRocket/Internal/SRConstants.h x: 4 commits (all time) y: 10 lines of code SocketRocket/SRWebSocket.m x: 235 commits (all time) y: 1219 lines of code SocketRocket/Internal/Delegate/SRDelegateController.m x: 7 commits (all time) y: 99 lines of code SocketRocket/Internal/Delegate/SRDelegateController.h x: 7 commits (all time) y: 40 lines of code SocketRocket/Internal/Security/SRPinningSecurityPolicy.h x: 4 commits (all time) y: 7 lines of code SocketRocket/Internal/Security/SRPinningSecurityPolicy.m x: 2 commits (all time) y: 45 lines of code SocketRocket/NSURLRequest+SRWebSocket.h x: 5 commits (all time) y: 13 lines of code SocketRocket/NSURLRequest+SRWebSocket.m x: 7 commits (all time) y: 20 lines of code SocketRocket/SRSecurityPolicy.h x: 2 commits (all time) y: 16 lines of code SocketRocket/SRWebSocket.h x: 84 commits (all time) y: 86 lines of code SocketRocket/Internal/Utilities/SRMutex.m x: 2 commits (all time) y: 29 lines of code SocketRocket/Internal/NSRunLoop+SRWebSocketPrivate.h x: 3 commits (all time) y: 2 lines of code SocketRocket/Internal/Proxy/SRProxyConnect.m x: 21 commits (all time) y: 378 lines of code SocketRocket/Internal/RunLoop/SRRunLoopThread.m x: 6 commits (all time) y: 59 lines of code SocketRocket/Internal/Utilities/SRError.m x: 3 commits (all time) y: 26 lines of code SocketRocket/Internal/Utilities/SRSIMDHelpers.m x: 3 commits (all time) y: 38 lines of code SocketRocket/SocketRocket.h x: 10 commits (all time) y: 4 lines of code SocketRocket/Internal/Utilities/SRHTTPConnectMessage.m x: 4 commits (all time) y: 51 lines of code SocketRocket/Internal/Utilities/SRURLUtilities.h x: 7 commits (all time) y: 7 lines of code SocketRocket/Internal/SRConstants.m x: 1 commits (all time) y: 9 lines of code SocketRocket/Internal/Utilities/SRSIMDHelpers.h x: 1 commits (all time) y: 2 lines of code TestChat/TCViewController.m x: 19 commits (all time) y: 124 lines of code SocketRocket/Internal/Utilities/SRLog.m x: 1 commits (all time) y: 17 lines of code SocketRocket/Internal/Utilities/SRHTTPConnectMessage.h x: 2 commits (all time) y: 8 lines of code SocketRocket/Internal/Utilities/SRRandom.h x: 2 commits (all time) y: 4 lines of code SocketRocket/Internal/Utilities/SRRandom.m x: 2 commits (all time) y: 13 lines of code TestChat/TCAppDelegate.h x: 4 commits (all time) y: 4 lines of code TestChat/TCViewController.h x: 8 commits (all time) y: 6 lines of code SocketRocket/Internal/Proxy/SRProxyConnect.h x: 3 commits (all time) y: 10 lines of code SocketRocket/Internal/IOConsumer/SRIOConsumer.h x: 2 commits (all time) y: 22 lines of code SocketRocket/Internal/Utilities/SRHash.m x: 2 commits (all time) y: 26 lines of code TestChat/TCChatCell.m x: 4 commits (all time) y: 22 lines of code TestChatServer/go/chatroom.go x: 8 commits (all time) y: 52 lines of code TestChatServer/py/chatroom.py x: 3 commits (all time) y: 49 lines of code TestChatServer/static/proxy.js x: 2 commits (all time) y: 38 lines of code TestChatServer/static/index.html x: 1 commits (all time) y: 35 lines of code
1219.0
lines of code
  min: 2.0
  average: 54.69
  25th percentile: 7.0
  median: 14.5
  75th percentile: 43.0
  max: 1219.0
0 235.0
commits (all time)
min: 1.0 | average: 10.1 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 5.75 | max: 235.0

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

SocketRocket/Internal/Utilities/SRURLUtilities.m x: 1 contributors (all time) y: 62 lines of code SocketRocket/Internal/SRConstants.h x: 1 contributors (all time) y: 10 lines of code SocketRocket/SRWebSocket.m x: 50 contributors (all time) y: 1219 lines of code SocketRocket/Internal/Delegate/SRDelegateController.m x: 1 contributors (all time) y: 99 lines of code SocketRocket/Internal/Delegate/SRDelegateController.h x: 2 contributors (all time) y: 40 lines of code SocketRocket/Internal/Security/SRPinningSecurityPolicy.h x: 3 contributors (all time) y: 7 lines of code SocketRocket/Internal/Security/SRPinningSecurityPolicy.m x: 2 contributors (all time) y: 45 lines of code SocketRocket/NSURLRequest+SRWebSocket.h x: 2 contributors (all time) y: 13 lines of code SocketRocket/NSURLRequest+SRWebSocket.m x: 2 contributors (all time) y: 20 lines of code SocketRocket/SRSecurityPolicy.h x: 2 contributors (all time) y: 16 lines of code SocketRocket/SRWebSocket.h x: 24 contributors (all time) y: 86 lines of code SocketRocket/Internal/Utilities/SRMutex.m x: 2 contributors (all time) y: 29 lines of code SocketRocket/Internal/NSRunLoop+SRWebSocketPrivate.h x: 1 contributors (all time) y: 2 lines of code SocketRocket/Internal/Proxy/SRProxyConnect.m x: 2 contributors (all time) y: 378 lines of code SocketRocket/Internal/Utilities/SRError.m x: 1 contributors (all time) y: 26 lines of code SocketRocket/Internal/Utilities/SRSIMDHelpers.m x: 2 contributors (all time) y: 38 lines of code SocketRocket/SocketRocket.h x: 4 contributors (all time) y: 4 lines of code SocketRocket/Internal/Utilities/SRHTTPConnectMessage.m x: 1 contributors (all time) y: 51 lines of code SocketRocket/Internal/Utilities/SRURLUtilities.h x: 1 contributors (all time) y: 7 lines of code TestChat/TCViewController.m x: 9 contributors (all time) y: 124 lines of code SocketRocket/Internal/Utilities/SRLog.m x: 1 contributors (all time) y: 17 lines of code TestChat/TCAppDelegate.h x: 2 contributors (all time) y: 4 lines of code TestChat/TCAppDelegate.m x: 2 contributors (all time) y: 7 lines of code TestChat/TCViewController.h x: 7 contributors (all time) y: 6 lines of code SocketRocket/Internal/IOConsumer/SRIOConsumer.h x: 1 contributors (all time) y: 22 lines of code SocketRocket/Internal/IOConsumer/SRIOConsumerPool.m x: 1 contributors (all time) y: 45 lines of code TestChatServer/go/chatroom.go x: 6 contributors (all time) y: 52 lines of code TestChatServer/py/chatroom.py x: 2 contributors (all time) y: 49 lines of code TestChatServer/static/index.html x: 1 contributors (all time) y: 35 lines of code
1219.0
lines of code
  min: 2.0
  average: 54.69
  25th percentile: 7.0
  median: 14.5
  75th percentile: 43.0
  max: 1219.0
0 50.0
contributors (all time)
min: 1.0 | average: 3.17 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 50.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".