microsoft / xbox-live-samples
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 843 files with 171,575 lines of code.
    • 15 very long files (58,747 lines of code)
    • 28 long files (17,623 lines of code)
    • 159 medium size files (51,132 lines of codeclsfd_ftr_w_mp_ins)
    • 184 small files (25,943 lines of code)
    • 457 very small files (18,130 lines of code)
34% | 10% | 29% | 15% | 10%
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
cpp29% | 16% | 34% | 14% | 4%
js95% | 2% | 0% | <1% | <1%
css99% | 0% | 0% | 0% | <1%
h10% | 4% | 12% | 25% | 46%
asset0% | 44% | 20% | 12% | 23%
vcxproj0% | 3% | 94% | 2% | 0%
filters0% | 0% | 42% | 56% | 1%
unity0% | 0% | 100% | 0% | 0%
java0% | 0% | 38% | 20% | 41%
cs0% | 0% | 11% | 70% | 18%
mm0% | 0% | 0% | 35% | 64%
xaml0% | 0% | 0% | 79% | 20%
m0% | 0% | 0% | 0% | 100%
jsproj0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
targets0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
CreatorsSDK/Social90% | 1% | 5% | 1% | 1%
ID@XboxSDK/Clubs55% | 0% | 24% | 12% | 7%
Kits/ATGTK44% | 22% | 20% | 8% | 4%
ID@XboxSDK/Social34% | 6% | 30% | 17% | 11%
ID@XboxSDK/GameSave11% | 26% | 29% | 14% | 17%
MobileSDK/Samples-Cocos2d-x39% | 0% | 21% | 13% | 24%
MobileSDK/Samples-Native27% | 0% | 9% | 24% | 38%
ID@XboxSDK/PositionalChat29% | 12% | 29% | 15% | 12%
ID@XboxSDK/GameSaveCppWinRT15% | 8% | 30% | 22% | 22%
Kits/Microsoft.Xbox.Samples.NetworkMesh0% | 51% | 16% | 18% | 13%
ID@XboxSDK/InGameChat0% | 36% | 37% | 14% | 11%
ID@XboxSDK/DataPlatform20130% | 5% | 57% | 27% | 9%
Kits/LiveTK0% | 39% | 14% | 27% | 17%
ID@XboxSDK/Achievements0% | 27% | 33% | 30% | 8%
ID@XboxSDK/Multiplayer0% | 0% | 72% | 18% | 9%
ID@XboxSDK/Matchmaking0% | 0% | 72% | 17% | 9%
ID@XboxSDK/TitleStorage0% | 0% | 61% | 26% | 11%
CreatorsSDK/Leaderboards0% | 0% | 71% | 20% | 7%
ID@XboxSDK/Leaderboards0% | 0% | 61% | 30% | 8%
ID@XboxSDK/TCUI0% | 0% | 76% | 0% | 23%
ID@XboxSDK/DataPlatform20170% | 0% | 46% | 43% | 9%
ID@XboxSDK/DownloadableContent0% | 0% | 44% | 34% | 20%
ID@XboxSDK/GameTrials0% | 0% | 47% | 40% | 11%
MobileSDK/Integration0% | 0% | 25% | 55% | 18%
ID@XboxSDK/XWebSecFiddlerExtension0% | 0% | 0% | 78% | 21%
Utilities0% | 0% | 0% | 0% | 100%
Utilities/VSOBuildScripts0% | 0% | 0% | 0% | 100%
Kits/Telemetry0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
base.js
in CreatorsSDK/Social/UWP/JS/Social/lib/WinJS-4.0.1/js
17977 1433
ui-dark.css
in CreatorsSDK/Social/UWP/JS/Social/lib/WinJS-4.0.1/css
7119 -
ui-light.css
in CreatorsSDK/Social/UWP/JS/Social/lib/WinJS-4.0.1/css
7119 -
SampleGUI.cpp
in Kits/ATGTK
4202 112
SampleGUI.cpp
in CreatorsSDK/Social/UWP/Cpp
3558 97
SampleGUI.cpp
in ID@XboxSDK/Clubs/UWP/Cpp
3558 97
SampleGUI.cpp
in ID@XboxSDK/Clubs/Xbox/Cpp
3558 97
SampleGUI.cpp
in ID@XboxSDK/Social/UWP/Cpp
3558 97
salieri.h
in MobileSDK/Samples-Cocos2d-x/Sample-iOS_Mac/ios
1287 -
salieri.h
in MobileSDK/Samples-Native/Sample-iOS/Sample/Utilities
1287 -
PositionalChat.cpp
in ID@XboxSDK/PositionalChat/Xbox
1216 35
GameBoardScreen.cpp
in ID@XboxSDK/GameSave/UWP/GameLogic
1094 11
GameBoardScreen.cpp
in ID@XboxSDK/GameSave/Xbox/GameLogic
1094 11
WaveBankReader.cpp
in Kits/ATGTK
1090 37
GameBoardScreen.cpp
in ID@XboxSDK/GameSaveCppWinRT/Xbox/GameLogic
1030 12
InGameChat.cpp
in ID@XboxSDK/InGameChat/Xbox
976 30
InGameChatUWP.cpp
in ID@XboxSDK/InGameChat/UWP
898 37
Utils.cpp
in Kits/Microsoft.Xbox.Samples.NetworkMesh/common
841 2
ControllerHelp.cpp
in Kits/ATGTK
812 9
MeshPacketManager.cpp
in Kits/Microsoft.Xbox.Samples.NetworkMesh/MeshPacket
798 35
SampleGUI.h
in Kits/ATGTK
706 90
asset
ProjectSettings.asset
in ID@XboxSDK/DataPlatform2013/Achievements2013/Unity/ProjectSettings
652 -
asset
ProjectSettings.asset
in ID@XboxSDK/GameSave/Unity/ProjectSettings
652 -
asset
ProjectSettings.asset
in ID@XboxSDK/Social/Unity/ProjectSettings
652 -
HttpCall.cpp
in Kits/LiveTK
648 42
MeshManager_UWP.cpp
in Kits/Microsoft.Xbox.Samples.NetworkMesh/Mesh
632 27
iso8601.cpp
in Kits/Microsoft.Xbox.Samples.NetworkMesh/Utils
623 13
MeshManager.cpp
in Kits/Microsoft.Xbox.Samples.NetworkMesh/Mesh
617 27
DeviceResources.cpp
in ID@XboxSDK/GameSave/UWP/UWP
573 12
DeviceResources.cpp
in ID@XboxSDK/InGameChat/UWP
573 12
InputState.cpp
in ID@XboxSDK/GameSave/UWP/Common
571 31
InputState.cpp
in ID@XboxSDK/GameSave/Xbox/Common
571 31
OrbitCamera.cpp
in Kits/ATGTK
569 22
vcxproj
GameSaveUWP.vcxproj
in ID@XboxSDK/GameSave/UWP/UWP
566 -
InputState.cpp
in ID@XboxSDK/GameSaveCppWinRT/Xbox/Common
564 32
WAVFileReader.cpp
in Kits/ATGTK
544 9
GameSaveManagerUWP.cpp
in ID@XboxSDK/GameSave/UWP/GameLogic
518 17
GameSaveManagerUWP.cpp
in ID@XboxSDK/GameSave/Xbox/GameLogic
518 17
ChatIntegrationLayer.cpp
in ID@XboxSDK/PositionalChat/Xbox
515 13
ui.strings.js
in CreatorsSDK/Social/UWP/JS/Social/lib/WinJS-4.0.1/js/en-US
513 2
StatsSample.h
in ID@XboxSDK/Achievements/Xbox
509 24
GameSaveManagerXDK.cpp
in ID@XboxSDK/GameSave/UWP/GameLogic
506 17
GameSaveManagerXDK.cpp
in ID@XboxSDK/GameSave/Xbox/GameLogic
506 17
GameSaveManagerXDK.cpp
in ID@XboxSDK/GameSaveCppWinRT/Xbox/GameLogic
491 19
vcxproj
GameSaveXDK.vcxproj
in ID@XboxSDK/GameSaveCppWinRT/Xbox/XDK
473 -
vcxproj
GameSaveXDK.vcxproj
in ID@XboxSDK/GameSave/Xbox/XDK
464 -
GameSave.h
in ID@XboxSDK/GameSave/UWP/GameLogic
461 13
GameSave.h
in ID@XboxSDK/GameSave/Xbox/GameLogic
461 13
Utils.cpp
in Kits/Microsoft.Xbox.Samples.NetworkMesh/Utils
455 2
DeviceResources.cpp
in CreatorsSDK/Leaderboards/UWP/Cpp
451 11
Files With Most Units (Top 20)
File# lines# units
base.js
in CreatorsSDK/Social/UWP/JS/Social/lib/WinJS-4.0.1/js
17977 1433
SampleGUI.cpp
in Kits/ATGTK
4202 112
SampleGUI.cpp
in CreatorsSDK/Social/UWP/Cpp
3558 97
SampleGUI.cpp
in ID@XboxSDK/Clubs/UWP/Cpp
3558 97
SampleGUI.cpp
in ID@XboxSDK/Clubs/Xbox/Cpp
3558 97
SampleGUI.cpp
in ID@XboxSDK/Social/UWP/Cpp
3558 97
SampleGUI.h
in Kits/ATGTK
706 90
HttpCall.cpp
in Kits/LiveTK
648 42
InGameChatUWP.cpp
in ID@XboxSDK/InGameChat/UWP
898 37
WaveBankReader.cpp
in Kits/ATGTK
1090 37
PositionalChat.cpp
in ID@XboxSDK/PositionalChat/Xbox
1216 35
MeshPacketManager.cpp
in Kits/Microsoft.Xbox.Samples.NetworkMesh/MeshPacket
798 35
InputState.cpp
in ID@XboxSDK/GameSaveCppWinRT/Xbox/Common
564 32
InputState.cpp
in ID@XboxSDK/GameSave/UWP/Common
571 31
InputState.cpp
in ID@XboxSDK/GameSave/Xbox/Common
571 31
InGameChat.cpp
in ID@XboxSDK/InGameChat/Xbox
976 30
PerformanceTimers.cpp
in Kits/ATGTK
375 30
TitleStorage.cpp
in ID@XboxSDK/TitleStorage/UWP/Cpp
426 29
MeshManager.cpp
in Kits/Microsoft.Xbox.Samples.NetworkMesh/Mesh
617 27
MeshManager_UWP.cpp
in Kits/Microsoft.Xbox.Samples.NetworkMesh/Mesh
632 27
Files With Long Lines (Top 20)

There are 367 files with lines longer than 120 characters. In total, there are 3991 long lines.

File# lines# units# long lines
base.js
in CreatorsSDK/Social/UWP/JS/Social/lib/WinJS-4.0.1/js
17977 1433 268
StatsSample.h
in ID@XboxSDK/Achievements/Xbox
509 24 150
StatsSample.h
in ID@XboxSDK/DataPlatform2013/Achievements2013/Xbox/Cpp
407 20 126
StatsSample.h
in ID@XboxSDK/DataPlatform2013/Leaderboards/Xbox/Cpp
407 20 126
StatsSample.h
in ID@XboxSDK/Leaderboards/Xbox
407 20 126
ui-dark.css
in CreatorsSDK/Social/UWP/JS/Social/lib/WinJS-4.0.1/css
7119 - 109
ui-light.css
in CreatorsSDK/Social/UWP/JS/Social/lib/WinJS-4.0.1/css
7119 - 106
SampleGUI.cpp
in Kits/ATGTK
4202 112 62
GameBoardScreen.cpp
in ID@XboxSDK/GameSave/UWP/GameLogic
1094 11 51
GameBoardScreen.cpp
in ID@XboxSDK/GameSave/Xbox/GameLogic
1094 11 51
GameBoardScreen.cpp
in ID@XboxSDK/GameSaveCppWinRT/Xbox/GameLogic
1030 12 43
vcxproj
Leaderboards_2015.vcxproj
in CreatorsSDK/Leaderboards/UWP/Cpp
344 - 39
vcxproj
Leaderboards_2017.vcxproj
in CreatorsSDK/Leaderboards/UWP/Cpp
346 - 39
vcxproj
Social_2015.vcxproj
in CreatorsSDK/Social/UWP/Cpp
354 - 39
vcxproj
Social_2017.vcxproj
in CreatorsSDK/Social/UWP/Cpp
354 - 39
vcxproj
Clubs_2015.vcxproj
in ID@XboxSDK/Clubs/UWP/Cpp
361 - 39
vcxproj
Clubs_2017.vcxproj
in ID@XboxSDK/Clubs/UWP/Cpp
361 - 39
vcxproj
Achievements_2015.vcxproj
in ID@XboxSDK/DataPlatform2013/Achievements2013/UWP/Cpp
345 - 39
vcxproj
Achievements_2017.vcxproj
in ID@XboxSDK/DataPlatform2013/Achievements2013/UWP/Cpp
345 - 39
vcxproj
Leaderboards_2015.vcxproj
in ID@XboxSDK/DataPlatform2013/Leaderboards/UWP/Cpp
345 - 39