aws-samples / aws-ambit-scenario-designer-ue4
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 28% duplication:
    • 10,099 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,868 duplicated lines
  • 370 duplicates
system28% (2,868 lines)
Duplication per Extension
cpp32% (2,818 lines)
h3% (50 lines)
Duplication per Component (primary)
Ambit/Source/Ambit/Actors36% (1,130 lines)
Ambit/Source/Ambit/Mode23% (857 lines)
Ambit/Source/AWSUE4Module/Private48% (448 lines)
Ambit/Source/Ambit/Utils25% (433 lines)
Ambit/Source/AWSUE4Module/Public0% (0 lines)
Ambit/Source/AWSUE4Module0% (0 lines)
Ambit/Source/Ambit0% (0 lines)
Ambit/Source/Ambit/Vehicle0% (0 lines)
Ambit/Source/AmbitUtils0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 370 duplicates...
Size#FoldersFilesLinesCode
86 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnOnPath.spec.cpp
SpawnOnSurface.spec.cpp
234:374 (33%)
184:326 (44%)
view
79 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnInVolume.spec.cpp
SpawnOnSurface.spec.cpp
75:195 (35%)
55:175 (40%)
view
79 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnInVolume.spec.cpp
SpawnOnPath.spec.cpp
75:195 (35%)
76:196 (30%)
view
79 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnOnPath.spec.cpp
SpawnOnSurface.spec.cpp
76:196 (30%)
55:175 (40%)
view
45 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnInVolume.spec.cpp
SpawnOnPath.spec.cpp
225:301 (20%)
240:316 (17%)
view
45 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnInVolume.spec.cpp
SpawnOnSurface.spec.cpp
225:301 (20%)
190:266 (23%)
view
43 x 2 Ambit/Source/Ambit/Actors/SpawnerConfigs
Ambit/Source/Ambit/Actors/SpawnerConfigs
SpawnOnPathConfig.cpp
SpawnVehiclePathConfig.cpp
106:172 (48%)
153:219 (38%)
view
39 x 2 Ambit/Source/Ambit/Actors/SpawnerConfigs
Ambit/Source/Ambit/Actors/SpawnerConfigs
SpawnOnPathConfig.cpp
SpawnVehiclePathConfig.cpp
34:97 (44%)
53:116 (35%)
view
33 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnInVolume.spec.cpp
SpawnOnPath.spec.cpp
310:361 (14%)
325:374 (12%)
view
33 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnInVolume.spec.cpp
SpawnOnSurface.spec.cpp
310:361 (14%)
275:326 (17%)
view
26 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
AmbitDetailCustomization.cpp
AmbitDetailCustomization.cpp
586:611 (2%)
687:712 (2%)
view
20 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
ConfigImportExport.spec.cpp
ConfigImportExport.spec.cpp
174:204 (2%)
805:835 (2%)
view
19 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnWithHoudini.spec.cpp
SpawnWithHoudini.spec.cpp
158:183 (5%)
240:265 (5%)
view
18 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
ConfigImportExport.spec.cpp
ConfigImportExport.spec.cpp
180:204 (2%)
712:736 (2%)
view
18 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
ConfigImportExport.spec.cpp
ConfigImportExport.spec.cpp
712:736 (2%)
811:835 (2%)
view
17 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
ConfigImportExport.spec.cpp
ConfigImportExport.spec.cpp
674:695 (2%)
814:835 (2%)
view
17 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
AmbitDetailCustomization.cpp
AmbitDetailCustomization.cpp
522:538 (1%)
623:639 (1%)
view
17 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
AmbitDetailCustomization.cpp
AmbitDetailCustomization.cpp
365:381 (1%)
756:772 (1%)
view
17 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
ConfigImportExport.spec.cpp
ConfigImportExport.spec.cpp
183:204 (2%)
674:695 (2%)
view
17 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
AmbitDetailCustomization.cpp
AmbitDetailCustomization.cpp
365:381 (1%)
451:467 (1%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 Ambit/Source/AmbitUtils
Ambit/Source/AmbitUtils
JsonHelpers.cpp
JsonHelpers.cpp
24:37 
39:52 
view
9 x 4 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
AWSRegionDropdownMenu.cpp
GltfFileTypeDropdownMenu.cpp
TimeOfDayDropdownMenu.cpp
WeatherDropdownMenu.cpp
45:56 
42:53 
70:81 
51:62 
view
7 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
VehicleTraffic.cpp
PedestrianTraffic.cpp
24:33 
24:33 
view
7 x 2 Ambit/Source/Ambit/Mode
Ambit/Source/Ambit/Mode
VehicleTraffic.cpp
PedestrianTraffic.cpp
84:92 
84:92 
view
7 x 2 Ambit/Source/Ambit/Actors/Spawners
Ambit/Source/Ambit/Actors/Spawners
SpawnOnPath.cpp
SpawnOnSurface.cpp
44:52 
36:45 
view