microsoft / RIoT
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 146 files with 37,090 lines of code.
    • 8 very long files (13,054 lines of code)
    • 12 long files (7,566 lines of code)
    • 28 medium size files (9,392 lines of codeclsfd_ftr_w_mp_ins)
    • 27 small files (3,932 lines of code)
    • 71 very small files (3,146 lines of code)
35% | 20% | 25% | 10% | 8%
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
c53% | 24% | 19% | 1% | <1%
h0% | 21% | 23% | 23% | 31%
cs0% | 0% | 57% | 28% | 13%
cpp0% | 0% | 71% | 17% | 10%
java0% | 0% | 95% | 0% | 4%
vcxproj0% | 0% | 0% | 100% | 0%
filters0% | 0% | 0% | 60% | 39%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Reference/RIoT42% | 24% | 19% | 6% | 7%
Simulation/RIoT41% | 23% | 18% | 8% | 7%
Tools/RIoT0% | 0% | 47% | 43% | 8%
Tools/DICETest0% | 0% | 70% | 22% | 7%
Pkgs/NuGet0% | 0% | 89% | 0% | 10%
Pkgs/Maven0% | 0% | 95% | 0% | 4%
Reference0% | 0% | 97% | 0% | 2%
Tools/RIoTDemo0% | 0% | 54% | 0% | 45%
Tools/TlsClient0% | 0% | 52% | 33% | 14%
Simulation/DICE0% | 0% | 41% | 43% | 15%
Simulation/FW0% | 0% | 0% | 49% | 50%
Longest Files (Top 50)
File# lines# units
ecp.c
in Reference/RIoT/RIoTCrypt
1922 68
ecp.c
in Simulation/RIoT/Core/RIoTCrypt
1922 68
bignum.c
in Reference/RIoT/RIoTCrypt
1858 62
bignum.c
in Simulation/RIoT/Core/RIoTCrypt
1858 62
aes.c
in Reference/RIoT/RIoTCrypt
1682 23
aes.c
in Simulation/RIoT/Core/RIoTCrypt
1682 23
ecp_curves.c
in Reference/RIoT/RIoTCrypt
1065 22
ecp_curves.c
in Simulation/RIoT/Core/RIoTCrypt
1065 22
bn_mul.h
in Reference/RIoT/RIoTCrypt/include/mbedtls
766 -
bn_mul.h
in Simulation/RIoT/Core/RIoTCrypt/include/mbedtls
766 -
md.c
in Reference/RIoT/RIoTCrypt
748 18
md.c
in Simulation/RIoT/Core/RIoTCrypt
748 18
ecdsa.c
in Reference/RIoT/RIoTCrypt
672 27
ecdsa.c
in Simulation/RIoT/Core/RIoTCrypt
672 27
ecdh.c
in Reference/RIoT/RIoTCrypt
554 25
ecdh.c
in Simulation/RIoT/Core/RIoTCrypt
554 25
x509bldr.c
in Reference/RIoT/RIoTCrypt
529 -
x509bldr.c
in Simulation/RIoT/Core/RIoTCrypt
529 -
RiotCrypt.c
in Reference/RIoT/RIoTCrypt
514 -
RiotCrypt.c
in Simulation/RIoT/Core/RIoTCrypt
514 -
CertChecker.cs
in Tools/DICETest
483 22
derenc.c
in Reference/RIoT/RIoTCrypt
435 -
derenc.c
in Simulation/RIoT/Core/RIoTCrypt
435 -
sha256.c
in Reference/RIoT/RIoTCrypt
419 14
sha256.c
in Simulation/RIoT/Core/RIoTCrypt
419 14
check_config.h
in Reference/RIoT/RIoTCrypt/include/mbedtls
416 -
check_config.h
in Simulation/RIoT/Core/RIoTCrypt/include/mbedtls
416 -
sha1.c
in Reference/RIoT/RIoTCrypt
414 14
sha1.c
in Simulation/RIoT/Core/RIoTCrypt
414 14
hmac_drbg.c
in Reference/RIoT/RIoTCrypt
405 18
hmac_drbg.c
in Simulation/RIoT/Core/RIoTCrypt
405 18
RiotEngine.cs
in Pkgs/NuGet/DiceRiotEmulator/DiceRiotEmulator
383 14
TLSServer.cs
in Tools/RIoT
373 10
RIoT.java
in Pkgs/Maven/DiceRIoTEmulator/src/main/java/com/microsoft/msr/RiotEmulator
345 12
RIoTester.c
in Reference/RIoT
342 1
RIoTEmulator.c
in Reference
319 6
CertMaker.cs
in Tools/RIoT
307 12
MainPage.cs
in Tools/RIoTDemo
286 10
TlsClient.cpp
in Tools/TlsClient
266 9
DiceSha256.c
in Simulation/DICE
264 7
Main.cs
in Tools/RIoT
261 5
base64.c
in Reference/RIoT/RIoTCrypt
246 -
base64.c
in Simulation/RIoT/Core/RIoTCrypt
246 -
RIoT.cpp
in Simulation/RIoT/Core
237 -
ecp.h
in Reference/RIoT/RIoTCrypt/include/mbedtls
225 -
ecp.h
in Simulation/RIoT/Core/RIoTCrypt/include/mbedtls
225 -
platform.h
in Reference/RIoT/RIoTCrypt/include/mbedtls
203 -
platform.h
in Simulation/RIoT/Core/RIoTCrypt/include/mbedtls
203 -
bignum.h
in Reference/RIoT/RIoTCrypt/include/mbedtls
193 -
bignum.h
in Simulation/RIoT/Core/RIoTCrypt/include/mbedtls
193 -
Files With Most Units (Top 20)
File# lines# units
ecp.c
in Reference/RIoT/RIoTCrypt
1922 68
ecp.c
in Simulation/RIoT/Core/RIoTCrypt
1922 68
bignum.c
in Reference/RIoT/RIoTCrypt
1858 62
bignum.c
in Simulation/RIoT/Core/RIoTCrypt
1858 62
ecdsa.c
in Reference/RIoT/RIoTCrypt
672 27
ecdsa.c
in Simulation/RIoT/Core/RIoTCrypt
672 27
ecdh.c
in Reference/RIoT/RIoTCrypt
554 25
ecdh.c
in Simulation/RIoT/Core/RIoTCrypt
554 25
aes.c
in Reference/RIoT/RIoTCrypt
1682 23
aes.c
in Simulation/RIoT/Core/RIoTCrypt
1682 23
ecp_curves.c
in Reference/RIoT/RIoTCrypt
1065 22
ecp_curves.c
in Simulation/RIoT/Core/RIoTCrypt
1065 22
CertChecker.cs
in Tools/DICETest
483 22
hmac_drbg.c
in Reference/RIoT/RIoTCrypt
405 18
md.c
in Reference/RIoT/RIoTCrypt
748 18
hmac_drbg.c
in Simulation/RIoT/Core/RIoTCrypt
405 18
md.c
in Simulation/RIoT/Core/RIoTCrypt
748 18
RiotEngine.cs
in Pkgs/NuGet/DiceRiotEmulator/DiceRiotEmulator
383 14
sha1.c
in Reference/RIoT/RIoTCrypt
414 14
sha256.c
in Reference/RIoT/RIoTCrypt
419 14
Files With Long Lines (Top 20)

There are 27 files with lines longer than 120 characters. In total, there are 108 long lines.

File# lines# units# long lines
CertChecker.cs
in Tools/DICETest
483 22 11
RiotEngine.cs
in Pkgs/NuGet/DiceRiotEmulator/DiceRiotEmulator
383 14 10
RIoTester.c
in Reference/RIoT
342 1 9
Main.cs
in Tools/RIoT
261 5 8
check_config.h
in Reference/RIoT/RIoTCrypt/include/mbedtls
416 - 6
vcxproj
Loader.vcxproj
in Simulation/FW
116 - 6
vcxproj
RIoT.vcxproj
in Simulation/RIoT/Core
167 - 6
check_config.h
in Simulation/RIoT/Core/RIoTCrypt/include/mbedtls
416 - 6
vcxproj
TlsClient.vcxproj
in Tools/TlsClient
168 - 6
vcxproj
DICE.vcxproj
in Simulation/DICE
157 - 5
CertMaker.cs
in Tools/RIoT
307 12 5
TLSServer.cs
in Tools/RIoT
373 10 4
HttpsListener.cs
in Tools/RIoT
60 4 3
HubControl.cs
in Tools/RIoT
156 9 3
IoTDevice.cs
in Tools/RIoT
142 5 3
Program.cs
in Pkgs/NuGet/DiceRiotTst/drtester
44 1 2
Program.cs
in Tools/DICETest
155 5 2
UpdateDemo.cs
in Tools/RIoT
148 8 2
MainPage.Designer.cs
in Tools/RIoTDemo
53 2 2
MainPage.cs
in Tools/RIoTDemo
286 10 2