microsoft / AirSim
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 709 files with 165,523 lines of code.
    • 24 very long files (85,970 lines of code)
    • 33 long files (21,937 lines of code)
    • 73 medium size files (22,344 lines of codeclsfd_ftr_w_mp_ins)
    • 117 small files (16,324 lines of code)
    • 462 very small files (18,948 lines of code)
51% | 13% | 13% | 9% | 11%
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
hpp59% | 8% | 9% | 8% | 13%
unity94% | 5% | 0% | 0% | 0%
cpp43% | 18% | 19% | 11% | 6%
prefab81% | 14% | 1% | 1% | <1%
cs26% | 26% | 17% | 15% | 14%
h0% | 21% | 18% | 24% | 35%
asset0% | 39% | 34% | 0% | 25%
vcxproj0% | 15% | 70% | 14% | 0%
xaml0% | 50% | 0% | 13% | 36%
py0% | 0% | 18% | 27% | 54%
filters0% | 0% | 77% | 9% | 12%
shader0% | 0% | 100% | 0% | 0%
cmake0% | 0% | 67% | 0% | 32%
mat0% | 0% | 14% | 49% | 36%
yml0% | 0% | 0% | 100% | 0%
cmd0% | 0% | 0% | 82% | 17%
launch0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Unity72% | 8% | 8% | 4% | 6%
MavLinkCom62% | 15% | 10% | 5% | 5%
AirLib41% | 12% | 16% | 12% | 16%
DroneShell84% | 9% | 5% | 0% | <1%
LogViewer31% | 31% | 10% | 14% | 12%
ros52% | 0% | 23% | 10% | 13%
ros249% | 0% | 24% | 12% | 14%
Unreal0% | 28% | 25% | 25% | 19%
PythonClient0% | 0% | 19% | 26% | 53%
SGM0% | 0% | 52% | 26% | 21%
HelloDrone0% | 0% | 66% | 28% | 5%
DroneServer0% | 0% | 71% | 0% | 28%
HelloCar0% | 0% | 77% | 0% | 22%
HelloSpawnedDrones0% | 0% | 66% | 31% | 1%
ROOT0% | 0% | 30% | 67% | 2%
pipelines0% | 0% | 0% | 100% | 0%
GazeboDrone0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
azure0% | 0% | 0% | 0% | 100%
docker0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
CarDemo.unity
in Unity/UnityDemo/Assets/Scenes
12827 -
DroneDemo.unity
in Unity/UnityDemo/Assets/Scenes
10518 -
MavLinkMessages.cpp
in MavLinkCom/src
7973 722
json.hpp
in AirLib/include/common/common_utils
6928 214
json.hpp
in MavLinkCom/common_utils
6928 214
MavLinkMessages.hpp
in MavLinkCom/include
6181 -
P_Weather_SnowFX.prefab
in Unity/UnityDemo/Assets/AirSimAssets/Weather/WeatherFX/Prefabs/Particles
4787 -
bitmap_image.hpp
in AirLib/include/common/common_utils
4413 158
linenoise.hpp
in DroneShell/include
3385 51
Commands.cpp
in MavLinkCom/MavLinkTest
2609 122
Car.prefab
in Unity/UnityDemo/Assets/AirSimAssets/Prefabs
2350 -
Car_Dummy.prefab
in Unity/UnityDemo/Assets/AirSimAssets/Prefabs
1651 -
MavLinkMultirotorApi.hpp
in AirLib/include/vehicles/multirotor/firmwares/mavlink
1630 95
QuadCopter.prefab
in Unity/UnityDemo/Assets/AirSimAssets/Prefabs
1606 -
MainWindow.xaml.cs
in LogViewer/LogViewer
1554 80
main.cpp
in MavLinkCom/MavLinkTest
1325 40
main.cpp
in DroneShell/src
1305 43
Px4ULog.cs
in LogViewer/LogViewer/Model
1202 56
AirSimHUD.prefab
in Unity/UnityDemo/Assets/AirSimAssets/Prefabs
1185 -
airsim_ros_wrapper.cpp
in ros/src/airsim_ros_pkgs/src
1177 58
WeatherTest.unity
in Unity/UnityDemo/Assets/Scenes
1143 -
SimpleLineChart.xaml.cs
in LogViewer/LogViewer/Controls
1116 53
airsim_ros_wrapper.cpp
in ros2/src/airsim_ros_pkgs/src
1107 66
AirSimSettings.hpp
in AirLib/include/common
1070 45
SimModeSelector.unity
in Unity/UnityDemo/Assets/Scenes
891 -
WorldSimApi.cpp
in Unreal/Plugins/AirSim/Source
886 71
WeatherHUDSlider.prefab
in Unity/UnityDemo/Assets/AirSimAssets/Prefabs
813 -
WeatherHUD.prefab
in Unity/UnityDemo/Assets/AirSimAssets/Weather/UI
763 -
MavLinkVehicleImpl.cpp
in MavLinkCom/src/impl
759 33
Commands.h
in MavLinkCom/MavLinkTest
758 40
optional.hpp
in AirLib/include/common/common_utils
757 53
optional.hpp
in MavLinkCom/common_utils
757 53
RpcLibAdaptorsBase.hpp
in AirLib/include/api
755 34
mavlink_helpers.h
in MavLinkCom/mavlink
755 23
MavlinkLog.cs
in LogViewer/LogViewer/Model
739 31
PX4BinaryLog.cs
in LogViewer/LogViewer/Utilities
719 13
MavLinkFtpClientImpl.cpp
in MavLinkCom/src/impl
711 35
SimModeBase.cpp
in Unreal/Plugins/AirSim/Source/SimMode
683 47
Px4DataLog.cs
in LogViewer/LogViewer/Model
679 17
SerialPort.cpp
in MavLinkCom/src/serial_com
671 19
MultirotorApiBase.cpp
in AirLib/src/vehicles/multirotor/api
669 53
asset
ProjectSettings.asset
in Unity/UnityDemo/ProjectSettings
669 -
PIPCamera.cpp
in Unreal/Plugins/AirSim/Source
642 46
MultiDroneDemo.unity
in Unity/UnityDemo/Assets/Scenes
640 -
AirBlueprintLib.cpp
in Unreal/Plugins/AirSim/Source
633 36
Utils.hpp
in AirLib/include/common/common_utils
619 58
XmlCsvReader.cs
in LogViewer/LogViewer/Utilities
604 29
vcxproj
MavLinkCom.vcxproj
in MavLinkCom
603 -
xaml
generic.xaml
in LogViewer/LogViewer/Themes
569 -
MavLinkGenerator.cs
in MavLinkCom/MavLinkComGenerator
559 12
Files With Most Units (Top 20)
File# lines# units
MavLinkMessages.cpp
in MavLinkCom/src
7973 722
json.hpp
in AirLib/include/common/common_utils
6928 214
json.hpp
in MavLinkCom/common_utils
6928 214
bitmap_image.hpp
in AirLib/include/common/common_utils
4413 158
client.py
in PythonClient/airsim
338 135
Commands.cpp
in MavLinkCom/MavLinkTest
2609 122
RpcLibClientBase.cpp
in AirLib/src/api
526 96
MavLinkMultirotorApi.hpp
in AirLib/include/vehicles/multirotor/firmwares/mavlink
1630 95
MainWindow.xaml.cs
in LogViewer/LogViewer
1554 80
WorldSimApi.cpp
in Unreal/Plugins/AirSim/Source
886 71
WorldSimApi.cpp
in Unity/AirLibWrapper/AirsimWrapper/Source
449 68
airsim_ros_wrapper.cpp
in ros2/src/airsim_ros_pkgs/src
1107 66
types.py
in PythonClient/airsim
446 65
VectorMath.hpp
in AirLib/include/common
517 63
Utils.hpp
in AirLib/include/common/common_utils
619 58
airsim_ros_wrapper.cpp
in ros/src/airsim_ros_pkgs/src
1177 58
Px4ULog.cs
in LogViewer/LogViewer/Model
1202 56
optional.hpp
in AirLib/include/common/common_utils
757 53
MultirotorApiBase.cpp
in AirLib/src/vehicles/multirotor/api
669 53
SimpleLineChart.xaml.cs
in LogViewer/LogViewer/Controls
1116 53
Files With Long Lines (Top 20)

There are 304 files with lines longer than 120 characters. In total, there are 2403 long lines.

File# lines# units# long lines
airsim_ros_wrapper.cpp
in ros2/src/airsim_ros_pkgs/src
1107 66 110
RpcLibClientBase.cpp
in AirLib/src/api
526 96 88
RpcLibServerBase.cpp
in AirLib/src/api
412 4 73
airsim_ros_wrapper.cpp
in ros/src/airsim_ros_pkgs/src
1177 58 72
AirSimSettings.hpp
in AirLib/include/common
1070 45 57
MultirotorRpcLibClient.cpp
in AirLib/src/vehicles/multirotor/api
216 8 56
MavLinkMultirotorApi.hpp
in AirLib/include/vehicles/multirotor/firmwares/mavlink
1630 95 54
main.cpp
in MavLinkCom/MavLinkTest
1325 40 48
RpcLibClientBase.hpp
in AirLib/include/api
140 - 45
main.cpp
in DroneShell/src
1305 43 45
MultirotorRpcLibServer.cpp
in AirLib/src/vehicles/multirotor/api
128 - 40
WorldSimApi.cpp
in Unreal/Plugins/AirSim/Source
886 71 38
MultirotorApiBase.cpp
in AirLib/src/vehicles/multirotor/api
669 53 35
client.py
in PythonClient/airsim
338 135 34
MultirotorRpcLibClient.hpp
in AirLib/include/vehicles/multirotor/api
69 - 33
xaml
generic.xaml
in LogViewer/LogViewer/Themes
569 - 31
airsim_ros_wrapper.h
in ros2/src/airsim_ros_pkgs/include
286 1 29
Commands.cpp
in MavLinkCom/MavLinkTest
2609 122 27
pd_position_controller_simple.cpp
in ros2/src/airsim_ros_pkgs/src
262 15 27
PawnSimApi.cpp
in Unreal/Plugins/AirSim/Source
411 36 25