apple / swift-nio-examples
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 45 files with 3,626 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 6 medium size files (1,384 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,169 lines of code)
    • 31 very small files (1,073 lines of code)
0% | 0% | 38% | 32% | 29%
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
swift0% | 0% | 38% | 32% | 29%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
json-rpc/Sources0% | 0% | 76% | 12% | 11%
http2-client/Sources0% | 0% | 71% | 28% | 0%
backpressure-file-io-channel/Sources0% | 0% | 55% | 36% | 7%
NIOSMTP/NIOSMTP0% | 0% | 0% | 65% | 34%
connect-proxy/Sources0% | 0% | 0% | 59% | 40%
TLSify/Sources0% | 0% | 0% | 53% | 46%
http2-server/Sources0% | 0% | 0% | 71% | 28%
UniversalBootstrapDemo/Sources0% | 0% | 0% | 0% | 100%
nio-launchd/Sources0% | 0% | 0% | 0% | 100%
json-rpc0% | 0% | 0% | 0% | 100%
TLSify0% | 0% | 0% | 0% | 100%
backpressure-file-io-channel0% | 0% | 0% | 0% | 100%
nio-launchd0% | 0% | 0% | 0% | 100%
UniversalBootstrapDemo0% | 0% | 0% | 0% | 100%
http2-client0% | 0% | 0% | 0% | 100%
connect-proxy0% | 0% | 0% | 0% | 100%
http2-server0% | 0% | 0% | 0% | 100%
Longest Files (Top 45)
File# lines# units
main.swift
in http2-client/Sources/http2-client
298 13
Model.swift
in json-rpc/Sources/JsonRpc
237 13
main.swift
in json-rpc/Sources/LightsdDemo
220 6
FileIOChannelWriteCoordinator.swift
in backpressure-file-io-channel/Sources/BackpressureChannelToFileIO
211 2
Client.swift
in json-rpc/Sources/JsonRpc
209 3
Codec.swift
in json-rpc/Sources/JsonRpc
209 3
ConnectHandler.swift
in connect-proxy/Sources/ConnectProxy
170 4
TLSProxy.swift
in TLSify/Sources/TLSifyLib
169 3
ViewController.swift
in NIOSMTP/NIOSMTP
160 4
SendEmailHandler.swift
in NIOSMTP/NIOSMTP
146 7
Server.swift
in json-rpc/Sources/JsonRpc
145 1
SaveEverythingHTTPServer.swift
in backpressure-file-io-channel/Sources/BackpressureChannelToFileIO
137 3
main.swift
in http2-server/Sources/http2-server
122 1
Types.swift
in http2-client/Sources/http2-client
120 1
EventLoopGroupManager.swift
in UniversalBootstrapDemo/Sources/UniversalBootstrapDemo
88 -
GlueHandler.swift
in TLSify/Sources/TLSifyLib
82 9
GlueHandler.swift
in connect-proxy/Sources/ConnectProxy
80 9
main.swift
in json-rpc/Sources/ServerExample
79 4
ExampleHTTPLibrary.swift
in UniversalBootstrapDemo/Sources/UniversalBootstrapDemo
59 1
Server.swift
in nio-launchd/Sources/nio-launchd
57 2
main.swift
in TLSify/Sources/TLSify
54 1
SMTPRequestEncoder.swift
in NIOSMTP/NIOSMTP
50 2
HardcodedPrivateKeyAndCerts.swift
in http2-server/Sources/http2-server
49 -
main.swift
in UniversalBootstrapDemo/Sources/UniversalBootstrapDemo
47 1
Client.swift
in nio-launchd/Sources/nio-launchd
38 1
DataModel.swift
in NIOSMTP/NIOSMTP
36 -
main.swift
in connect-proxy/Sources/ConnectProxy
32 -
main.swift
in backpressure-file-io-channel/Sources/BackpressureChannelToFileIODemo
30 -
Utils.swift
in json-rpc/Sources/JsonRpc
30 2
SMTPResponseDecoder.swift
in NIOSMTP/NIOSMTP
28 1
PrintEverythingHandler.swift
in NIOSMTP/NIOSMTP
27 3
Package.swift
in json-rpc
22 -
Package.swift
in TLSify
21 -
Package.swift
in backpressure-file-io-channel
21 -
main.swift
in json-rpc/Sources/ClientExample
19 -
Package.swift
in nio-launchd
16 -
Package.swift
in UniversalBootstrapDemo
15 -
Package.swift
in http2-client
15 -
Package.swift
in connect-proxy
14 -
Package.swift
in http2-server
14 -
Configuration.swift
in NIOSMTP/NIOSMTP
13 -
CloseOnErrorHandler.swift
in TLSify/Sources/TLSifyLib
13 2
main.swift
in nio-launchd/Sources/nio-launchd
11 -
AppDelegate.swift
in NIOSMTP/NIOSMTP
10 1
ConnectProxyError.swift
in connect-proxy/Sources/ConnectProxy
3 -
Files With Most Units (Top 20)
File# lines# units
main.swift
in http2-client/Sources/http2-client
298 13
Model.swift
in json-rpc/Sources/JsonRpc
237 13
GlueHandler.swift
in TLSify/Sources/TLSifyLib
82 9
GlueHandler.swift
in connect-proxy/Sources/ConnectProxy
80 9
SendEmailHandler.swift
in NIOSMTP/NIOSMTP
146 7
main.swift
in json-rpc/Sources/LightsdDemo
220 6
ViewController.swift
in NIOSMTP/NIOSMTP
160 4
ConnectHandler.swift
in connect-proxy/Sources/ConnectProxy
170 4
main.swift
in json-rpc/Sources/ServerExample
79 4
PrintEverythingHandler.swift
in NIOSMTP/NIOSMTP
27 3
TLSProxy.swift
in TLSify/Sources/TLSifyLib
169 3
SaveEverythingHTTPServer.swift
in backpressure-file-io-channel/Sources/BackpressureChannelToFileIO
137 3
Client.swift
in json-rpc/Sources/JsonRpc
209 3
Codec.swift
in json-rpc/Sources/JsonRpc
209 3
SMTPRequestEncoder.swift
in NIOSMTP/NIOSMTP
50 2
CloseOnErrorHandler.swift
in TLSify/Sources/TLSifyLib
13 2
FileIOChannelWriteCoordinator.swift
in backpressure-file-io-channel/Sources/BackpressureChannelToFileIO
211 2
Utils.swift
in json-rpc/Sources/JsonRpc
30 2
Server.swift
in nio-launchd/Sources/nio-launchd
57 2
AppDelegate.swift
in NIOSMTP/NIOSMTP
10 1
Files With Long Lines (Top 13)

There are 13 files with lines longer than 120 characters. In total, there are 29 long lines.

File# lines# units# long lines
main.swift
in http2-client/Sources/http2-client
298 13 6
Codec.swift
in json-rpc/Sources/JsonRpc
209 3 5
main.swift
in http2-server/Sources/http2-server
122 1 4
SaveEverythingHTTPServer.swift
in backpressure-file-io-channel/Sources/BackpressureChannelToFileIO
137 3 3
main.swift
in json-rpc/Sources/LightsdDemo
220 6 3
AppDelegate.swift
in NIOSMTP/NIOSMTP
10 1 1
PrintEverythingHandler.swift
in NIOSMTP/NIOSMTP
27 3 1
SendEmailHandler.swift
in NIOSMTP/NIOSMTP
146 7 1
ViewController.swift
in NIOSMTP/NIOSMTP
160 4 1
EventLoopGroupManager.swift
in UniversalBootstrapDemo/Sources/UniversalBootstrapDemo
88 - 1
ConnectHandler.swift
in connect-proxy/Sources/ConnectProxy
170 4 1
main.swift
in connect-proxy/Sources/ConnectProxy
32 - 1
Client.swift
in json-rpc/Sources/JsonRpc
209 3 1